|
@@ -160,6 +160,7 @@ public class SocialUserServiceImpl implements SocialUserService {
|
|
|
|
|
|
AuthUser authUser = socialClientService.getAuthUser(socialType, userType, code, state);
|
|
|
Assert.notNull(authUser, "三方用户不能为空");
|
|
|
+ socialUser = socialUserMapper.selectByTypeAndOpenid(socialType, authUser.getUuid());
|
|
|
|
|
|
return getSocialUserDO(socialType, code, state, socialUser, authUser);
|
|
|
}
|
|
@@ -172,7 +173,6 @@ public class SocialUserServiceImpl implements SocialUserService {
|
|
|
* @param state 授权 state
|
|
|
* @return 社交用户
|
|
|
*/
|
|
|
- @NotNull
|
|
|
private SocialUserDO getSocialUserDO(Integer socialType, String code, String state, SocialUserDO socialUser, AuthUser authUser) {
|
|
|
if (socialUser == null) {
|
|
|
socialUser = new SocialUserDO();
|