fix
Helius
2021-07-16 1bada3da32aa8b29509b7357e5adfe816ac17c72
fix
1 files modified
4 ■■■■ changed files
gc-user/src/main/java/com/xzx/gc/user/service/DistribService.java 4 ●●●● patch | view | raw | blame | history
gc-user/src/main/java/com/xzx/gc/user/service/DistribService.java
@@ -113,6 +113,10 @@
        }
        AccountInfo accountInfo = accountMapper.selectOneByUserId(userId);
        if (AccountInfo.IS_HEAD_Y.equals(accountInfo.getIsHead())) {
            throw new RestException(-3, "团长不能加入团队");
        }
        UserShareInfo userShareInfo = userShareInfoMapper.selectByRegistPhone(accountInfo.getAccountName());
        if (userShareInfo != null) {
            throw new RestException(-3, "您已与推广员绑定, 无法加入");