Selaa lähdekoodia

优化查询小程序配置错误问题

java110 5 vuotta sitten
vanhempi
commit
9b498e3b50

+ 2 - 2
service-front/src/main/java/com/java110/front/smo/ownerLogin/impl/OwnerAppLoginSMOImpl.java

@@ -113,8 +113,8 @@ public class OwnerAppLoginSMOImpl extends AppAbstractComponentSMO implements IOw
         if (responseEntity.getStatusCode() != HttpStatus.OK) {
             return responseEntity;
         }
-
-        JSONArray smallWeChats = ownerInfo.getJSONArray("smallWeChats");
+        JSONObject smallWechatObj = JSONObject.parseObject(responseEntity.getBody().toString());
+        JSONArray smallWeChats = smallWechatObj.getJSONArray("smallWeChats");
         String appId = wechatAuthProperties.getAppId();
         String secret = wechatAuthProperties.getSecret();
         if (smallWeChats.size() > 0) {