|
@@ -162,6 +162,12 @@ public class PromoterController extends BaseApiController {
|
|
|
Long channelId = SecurityUtils.getLoginUser().getChannelId();
|
|
|
param.setChannelId(channelId);
|
|
|
|
|
|
+
|
|
|
+ int mobileCount = channelService.count(new LambdaQueryWrapper<Channel>().eq(Channel::getMobile, param.getMobile()));
|
|
|
+ if (mobileCount > 0) {
|
|
|
+ return AjaxResult.error("手机号码" + param.getMobile() + "已注册!");
|
|
|
+ }
|
|
|
+
|
|
|
// 校验推广员信息合法性
|
|
|
String checkRes = channelService.checkPromoter(param);
|
|
|
if (StringUtils.isNotBlank(checkRes)) {
|
|
@@ -193,6 +199,12 @@ public class PromoterController extends BaseApiController {
|
|
|
return AjaxResult.error("短信验证码错误");
|
|
|
}
|
|
|
|
|
|
+ int mobileCount = channelService.count(new LambdaQueryWrapper<Channel>().eq(Channel::getMobile, param.getMobile()));
|
|
|
+ if (mobileCount > 0) {
|
|
|
+ return AjaxResult.error("手机号码" + param.getMobile() + "已注册!");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 校验推广员信息合法性
|
|
|
String checkRes = channelService.checkPromoter(param);
|
|
|
if (StringUtils.isNotBlank(checkRes)) {
|