openId获取修改
This commit is contained in:
@@ -64,7 +64,7 @@ public class UserAuthorizationServiceImpl implements UserAuthorizationService {
|
||||
} else {
|
||||
JSONObject session = wechatAuthUtil.getSession(phoneDTO.getCode());
|
||||
String sessionKey = session.getString("session_key");
|
||||
openId = session.getString("openId");
|
||||
openId = session.getString("openid");
|
||||
userInfo = userInfoService.queryChain().eq(UserInfo::getAlipayOpenId, openId).one();
|
||||
String data = WxMaCryptUtils.decrypt(sessionKey, phoneDTO.getEncryptedData(), phoneDTO.getIv());
|
||||
JSONObject jsonObject = JSONObject.parseObject(data);
|
||||
|
||||
@@ -114,6 +114,6 @@ public class WechatAuthUtil {
|
||||
}
|
||||
|
||||
public String getSessionKeyOrOpenId(String code, boolean isAccount) {
|
||||
return getSessionKey(code, "openId");
|
||||
return getSessionKey(code, "openid");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user