Procházet zdrojové kódy

返回取消sessionkey

wuxw před 2 roky
rodič
revize
036b957141

+ 3 - 3
service-api/src/main/java/com/java110/api/smo/login/impl/WxLoginSMOImpl.java

@@ -99,7 +99,7 @@ public class WxLoginSMOImpl extends AppAbstractComponentSMO implements IWxLoginS
         }
 
         String openId = responseObj.getString("openid");
-        String sessionKey = responseObj.getString("session_key");
+        //String sessionKey = responseObj.getString("session_key");
 
         //responseEntity = super.getUserInfoByOpenId(pd, restTemplate, openId);
         OwnerAppUserDto ownerAppUserDto = new OwnerAppUserDto();
@@ -109,7 +109,7 @@ public class WxLoginSMOImpl extends AppAbstractComponentSMO implements IWxLoginS
         if (ownerAppUserDtos == null || ownerAppUserDtos.size() < 1) {
             //将openId放到redis 缓存,给前段下发临时票据
             paramOut.put("openId", openId);
-            paramOut.put("sessionKey", sessionKey);
+           // paramOut.put("sessionKey", sessionKey);
             paramOut.put("msg", "还没有注册请先注册");
             responseEntity = new ResponseEntity<String>(paramOut.toJSONString(), HttpStatus.UNAUTHORIZED);
 
@@ -128,7 +128,7 @@ public class WxLoginSMOImpl extends AppAbstractComponentSMO implements IWxLoginS
             paramOut.put("result", 0);
             paramOut.put("userInfo", userInfo);
             paramOut.put("token", token);
-            paramOut.put("sessionKey", sessionKey);
+            //paramOut.put("sessionKey", sessionKey);
             pd.setToken(token);
             responseEntity = new ResponseEntity<String>(paramOut.toJSONString(), HttpStatus.OK);
         } catch (Exception e) {