Procházet zdrojové kódy

测试的桶用hylj的

三七 před 1 týdnem
rodič
revize
cb066f6819

+ 8 - 8
fs-service-system/src/main/resources/application-config-dev.yml

@@ -71,18 +71,18 @@ wx:
         msgDataFormat: JSON
 
 ##  云联融智优选小程序,暂时使用
-#      - appid: wxd70f99287830cb51   #云联融智优选(暂时用于测试销售app)
-#        secret: 6e2684b3d48e6363018d4eedb8dae3e5
-#        token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
-#        aesKey:
-#        msgDataFormat: JSON
-
-      - appid: wxb9b453d37c5fad45   #福本源小程序
-        secret: 45ee94e8c48edbafdcca2131a5e9d48d
+      - appid: wxd70f99287830cb51   #云联融智优选(暂时用于测试销售app)
+        secret: 6e2684b3d48e6363018d4eedb8dae3e5
         token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
         aesKey:
         msgDataFormat: JSON
 
+#      - appid: wxb9b453d37c5fad45   #福本源小程序
+#        secret: 45ee94e8c48edbafdcca2131a5e9d48d
+#        token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
+#        aesKey:
+#        msgDataFormat: JSON
+
   pay:
     appId: wx93ce67750e3cfba3 #微信公众号或者小程序等的appid
     mchId: 1703311381 #微信支付商户号

+ 1 - 1
fs-user-app/src/main/java/com/fs/app/controller/WxUserController.java

@@ -68,7 +68,7 @@ public class WxUserController extends AppBaseController{
             return R.error("code不存在");
         }
 
-        final WxMaService wxService = WxMaConfiguration.getMaService(maProperties.getConfigs().get(0).getAppid());
+        final WxMaService wxService = WxMaConfiguration.getMaService(maProperties.getConfigs().get(1).getAppid());
         try {
             // 获取微信会话信息
             WxMaJscode2SessionResult session = wxService.getUserService().getSessionInfo(param.getCode());