|
|
@@ -94,6 +94,10 @@ public class UserRegisterController extends BaseController {
|
|
|
res.getError().add(buildError(ErrorConstants.MCODE_OVERTIME_ERROR, "手机验证码超时失效"));
|
|
|
return res;
|
|
|
}
|
|
|
+ if (user.getBeInviteCode()==null&&userService.checkeToInviteCode(user.getBeInviteCode())) {
|
|
|
+ res.getError().add(buildError("邀请码不存在", "邀请码不存在"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
if (res.getError().isEmpty()) {
|
|
|
User us = new User();
|
|
|
us.setId(UUID.randomUUID().toString());
|
|
|
@@ -158,7 +162,7 @@ public class UserRegisterController extends BaseController {
|
|
|
res.getError().add(buildError(ErrorConstants.MCODE_OVERTIME_ERROR, "手机验证码超时失效"));
|
|
|
return res;
|
|
|
}
|
|
|
- if (userService.checkeToInviteCode(user.getBeInviteCode())) {
|
|
|
+ if (user.getBeInviteCode()==null&&userService.checkeToInviteCode(user.getBeInviteCode())) {
|
|
|
res.getError().add(buildError("邀请码不存在", "邀请码不存在"));
|
|
|
return res;
|
|
|
}
|