|
|
@@ -643,21 +643,17 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
}else if (check==-2){
|
|
|
res.getError().add(buildError(ErrorConstants.CUSTOM_EREXCESS, USER_RECEIVE_MAX.toString(),USER_RECEIVE_MAX.toString()));
|
|
|
return res;
|
|
|
+ }else if (check==-3){
|
|
|
+ res.getError().add(buildError("", "私有客户已达最大限制"));
|
|
|
+ return res;
|
|
|
+ }else if (check==-4){
|
|
|
+ res.getError().add(buildError("", "外联客户丢失后不可再领取"));
|
|
|
+ return res;
|
|
|
}else {
|
|
|
res.getError().add(buildError("领取参数异常,请联系管理员"));
|
|
|
return res;
|
|
|
}
|
|
|
}
|
|
|
- if (customerService.checkMax(uid,TokenManager.getAdminId())) {
|
|
|
- res.getError().add(buildError("", "私有客户已达最大限制"));
|
|
|
- return res;
|
|
|
- }
|
|
|
-
|
|
|
- if (customerService.checkBeforeChannel(uid)) {
|
|
|
- res.getError().add(buildError("", "外联客户丢失后不可再领取"));
|
|
|
- return res;
|
|
|
- }
|
|
|
-
|
|
|
customerService.updateByOperatorType(uid, null, oldAid, AFTConstants.USER_RECEIVE, null);
|
|
|
return res;
|
|
|
}
|