|
@@ -70,7 +70,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
|
|
String openid = null;
|
|
String openid = null;
|
|
if (reqVO.getSocialType() != null) {
|
|
if (reqVO.getSocialType() != null) {
|
|
openid = socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
openid = socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
- reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState())).getCheckedData();
|
|
|
|
|
|
+ reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState(),null)).getCheckedData();
|
|
}
|
|
}
|
|
|
|
|
|
// 创建 Token 令牌,记录登录日志
|
|
// 创建 Token 令牌,记录登录日志
|
|
@@ -92,7 +92,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
|
|
String openid = null;
|
|
String openid = null;
|
|
if (reqVO.getSocialType() != null) {
|
|
if (reqVO.getSocialType() != null) {
|
|
openid = socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
openid = socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
- reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState())).getCheckedData();
|
|
|
|
|
|
+ reqVO.getSocialType(), reqVO.getSocialCode(), reqVO.getSocialState(),null)).getCheckedData();
|
|
}
|
|
}
|
|
|
|
|
|
// 创建 Token 令牌,记录登录日志
|
|
// 创建 Token 令牌,记录登录日志
|
|
@@ -117,7 +117,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
|
|
} else {
|
|
} else {
|
|
user = userService.createUser(socialUser.getNickname(), socialUser.getAvatar(), getClientIP(), getTerminal());
|
|
user = userService.createUser(socialUser.getNickname(), socialUser.getAvatar(), getClientIP(), getTerminal());
|
|
socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
- reqVO.getType(), reqVO.getCode(), reqVO.getState()));
|
|
|
|
|
|
+ reqVO.getType(), reqVO.getCode(), reqVO.getState(),null));
|
|
}
|
|
}
|
|
if (user == null) {
|
|
if (user == null) {
|
|
throw exception(USER_NOT_EXISTS);
|
|
throw exception(USER_NOT_EXISTS);
|
|
@@ -141,7 +141,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
|
|
|
|
|
|
// 绑定社交用户
|
|
// 绑定社交用户
|
|
String openid = socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
String openid = socialUserApi.bindSocialUser(new SocialUserBindReqDTO(user.getId(), getUserType().getValue(),
|
|
- SocialTypeEnum.WECHAT_MINI_APP.getType(), reqVO.getLoginCode(), reqVO.getState())).getCheckedData();
|
|
|
|
|
|
+ SocialTypeEnum.WECHAT_MINI_APP.getType(), reqVO.getLoginCode(), reqVO.getState(),null)).getCheckedData();
|
|
|
|
|
|
// 创建 Token 令牌,记录登录日志
|
|
// 创建 Token 令牌,记录登录日志
|
|
return createTokenAfterLoginSuccess(user, user.getMobile(), LoginLogTypeEnum.LOGIN_SOCIAL, openid);
|
|
return createTokenAfterLoginSuccess(user, user.getMobile(), LoginLogTypeEnum.LOGIN_SOCIAL, openid);
|