|
@@ -69,15 +69,18 @@ public class SocialUserServiceImpl implements SocialUserService {
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public String bindSocialUser(SocialUserBindReqDTO reqDTO) {
|
|
|
+ log.info("开始获取社交用户:{}", reqDTO);
|
|
|
|
|
|
SocialUserDO socialUser = authSocialUser(reqDTO.getSocialType(), reqDTO.getUserType(),
|
|
|
reqDTO.getCode(), reqDTO.getState());
|
|
|
+ log.info("拿到用户信息:{}", socialUser);
|
|
|
Assert.notNull(socialUser, "社交用户不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ log.info("解绑用户信息");
|
|
|
socialUserBindMapper.deleteByUserTypeAndUserIdAndSocialType(reqDTO.getUserType(), reqDTO.getUserId(),
|
|
|
socialUser.getType());
|
|
|
|