|
|
@@ -63,7 +63,7 @@ public class CpsManageServiceImpl implements CpsManageService {
|
|
|
}
|
|
|
String code = StringUtil.getRandomCodeStr(6);
|
|
|
if (type == 1) {
|
|
|
- if (!Validator.isMobile(login)) {
|
|
|
+ if (StrUtil.isEmpty(login)) {
|
|
|
throw BusinessRuntimeException.getInstance("请输入正确的手机号");
|
|
|
}
|
|
|
SmsUtil.sendTencent(cid, login, code);
|
|
|
@@ -93,13 +93,13 @@ public class CpsManageServiceImpl implements CpsManageService {
|
|
|
}
|
|
|
String CACHE_LOGIN_KEY = RedisService.key.CPS_BACK_LOGIN_KEY.getName();
|
|
|
if (type == 1) {
|
|
|
- if (!Validator.isMobile(phone)) {
|
|
|
+ if (StrUtil.isEmpty(phone)) {
|
|
|
throw BusinessRuntimeException.getInstance("请输入正确的手机号");
|
|
|
}
|
|
|
CACHE_LOGIN_KEY += phone;
|
|
|
} else if (type == 2) {
|
|
|
if (!Validator.isEmail(email)) {
|
|
|
- throw BusinessRuntimeException.getInstance("请输入正确的手机号");
|
|
|
+ throw BusinessRuntimeException.getInstance("请输入正确的邮箱");
|
|
|
}
|
|
|
CACHE_LOGIN_KEY += email;
|
|
|
}
|