fix WeChatAouth2Service

main
wangqing 8 months ago
parent ab4bb66c7f
commit f455beea42

@ -196,8 +196,7 @@ public class WeChatAouth2Service {
// 如果当前手机号不存在,那就是新用户 // 如果当前手机号不存在,那就是新用户
UserInfo loginUserInfo = new UserInfo(); UserInfo loginUserInfo = new UserInfo();
if(StringUtils.isNotBlank(wechatUsername)) loginUserInfo.setWxNickname(wechatUsername);
userInfo.setWxNickname(wechatUsername);
loginUserInfo.setWxId(openId); loginUserInfo.setWxId(openId);
loginUserInfo.setMobile(loginReq.getMobile()); loginUserInfo.setMobile(loginReq.getMobile());
loginUserInfo.setLastUseDeviceId(loginReq.getDeviceId()); loginUserInfo.setLastUseDeviceId(loginReq.getDeviceId());

Loading…
Cancel
Save