|
@@ -6,7 +6,6 @@ import cn.newfeifan.mall.framework.common.exception.ServiceException;
|
|
import cn.newfeifan.mall.framework.common.pojo.PageResult;
|
|
import cn.newfeifan.mall.framework.common.pojo.PageResult;
|
|
import cn.newfeifan.mall.framework.common.util.json.JsonUtils;
|
|
import cn.newfeifan.mall.framework.common.util.json.JsonUtils;
|
|
import cn.newfeifan.mall.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
import cn.newfeifan.mall.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
-import cn.newfeifan.mall.module.system.api.social.SocialUserApi;
|
|
|
|
import cn.newfeifan.mall.module.system.api.social.dto.SocialUserBindReqDTO;
|
|
import cn.newfeifan.mall.module.system.api.social.dto.SocialUserBindReqDTO;
|
|
import cn.newfeifan.mall.module.system.api.social.dto.SocialUserRespDTO;
|
|
import cn.newfeifan.mall.module.system.api.social.dto.SocialUserRespDTO;
|
|
import cn.newfeifan.mall.module.system.controller.admin.socail.vo.user.SocialUserPageReqVO;
|
|
import cn.newfeifan.mall.module.system.controller.admin.socail.vo.user.SocialUserPageReqVO;
|
|
@@ -18,7 +17,6 @@ import cn.newfeifan.mall.module.system.enums.social.SocialTypeEnum;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.xingyuv.jushauth.model.AuthUser;
|
|
import com.xingyuv.jushauth.model.AuthUser;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import org.springframework.context.annotation.Lazy;
|
|
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -57,10 +55,6 @@ public class SocialUserServiceImpl implements SocialUserService {
|
|
@Resource
|
|
@Resource
|
|
private StringRedisTemplate stringRedisTemplate;
|
|
private StringRedisTemplate stringRedisTemplate;
|
|
|
|
|
|
- @Resource
|
|
|
|
- @Lazy
|
|
|
|
- private SocialUserApi socialUserApi;
|
|
|
|
-
|
|
|
|
@Override
|
|
@Override
|
|
public List<SocialUserDO> getSocialUserList(Long userId, Integer userType) {
|
|
public List<SocialUserDO> getSocialUserList(Long userId, Integer userType) {
|
|
// 获得绑定
|
|
// 获得绑定
|
|
@@ -80,11 +74,6 @@ public class SocialUserServiceImpl implements SocialUserService {
|
|
reqDTO.getCode(), reqDTO.getState());
|
|
reqDTO.getCode(), reqDTO.getState());
|
|
Assert.notNull(socialUser, "社交用户不能为空");
|
|
Assert.notNull(socialUser, "社交用户不能为空");
|
|
|
|
|
|
- //微信能绑定的账号上限校验
|
|
|
|
- if(socialUserApi.wxBindIsMax(socialUser.getId())){
|
|
|
|
- throw exception(AUTH_SOCIAL_USER_BIND_MAX);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 社交用户可能之前绑定过别的用户,需要进行解绑
|
|
// 社交用户可能之前绑定过别的用户,需要进行解绑
|
|
// socialUserBindMapper.deleteByUserTypeAndSocialUserId(reqDTO.getUserType(), socialUser.getId());
|
|
// socialUserBindMapper.deleteByUserTypeAndSocialUserId(reqDTO.getUserType(), socialUser.getId());
|
|
|
|
|