|
|
|
@ -328,9 +328,21 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco |
|
|
|
|
} |
|
|
|
|
//验证手机验证码
|
|
|
|
|
if (inviteJoinInfo.getCode().equals(value)) { |
|
|
|
|
if (inviteJoinInfo.getPlatformId()==5){ |
|
|
|
|
// 查询邀请用户其他平台是否存在账号
|
|
|
|
|
UserAccount userAccount = baseMapper.selectAccount(inviteJoinInfo.getPhone(),"6"); |
|
|
|
|
if (userAccount != null) { |
|
|
|
|
throw new CustomException(ExceptionEnum.USER_ALREADY_EXISTS_OTHER_GROUP); |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
UserAccount userAccount = baseMapper.selectAccount(inviteJoinInfo.getPhone(),"5"); |
|
|
|
|
if (userAccount != null) { |
|
|
|
|
throw new CustomException(ExceptionEnum.USER_ALREADY_EXISTS_OTHER_GROUP); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查询邀请用户是否存在账号
|
|
|
|
|
UserAccount userAccount = baseMapper.selectAccount(inviteJoinInfo.getPlatformId().toString(), inviteJoinInfo.getPhone()); |
|
|
|
|
UserAccount userAccount = baseMapper.selectAccount(inviteJoinInfo.getPhone(),inviteJoinInfo.getPlatformId().toString()); |
|
|
|
|
|
|
|
|
|
Integer manageId ; |
|
|
|
|
//邀请人为成员且账号存在,则直接拉入该团队,不可重复拉入
|
|
|
|
|