|
|
@@ -111,18 +111,18 @@ public class PublicController extends BaseController {
|
|
|
// 用于找回密码
|
|
|
if (sign) {
|
|
|
if (null == userService.selectByMobieAndType(mobile.trim(), type)) {
|
|
|
- res.getError().add(buildError(ErrorConstants.NON_REGISTER, "", "该用户未注册!"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.NON_REGISTER, "", "该用户未注册!"));
|
|
|
return res;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!sign) {
|
|
|
if (StringUtils.isBlank(verificationCode)) {
|
|
|
- res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "图形验证码"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.VCODE_EMPTY_ERROR, "", "图像验证码不能为空!"));
|
|
|
return res;
|
|
|
}
|
|
|
if (!VerifyCodeUtils.verifyCode(verificationCode)) {
|
|
|
- res.getError().add(buildError(ErrorConstants.VCODE_ERROR, "", "验证码"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.VCODE_ERROR, "", "图形验证码输入错误!"));
|
|
|
|
|
|
return res;
|
|
|
}
|
|
|
@@ -136,7 +136,7 @@ public class PublicController extends BaseController {
|
|
|
TokenManager.getSession().removeAttribute(VerifyCodeUtils.M_CODE_TIME);
|
|
|
sendMessage(mobile, res);
|
|
|
} else {
|
|
|
- res.getError().add(buildError(ErrorConstants.MCODE_ERROR, "", "手机验证码发送频繁!"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.MCODE_FREQUENCY_ERROR, "", "手机验证码发送频繁!"));
|
|
|
}
|
|
|
|
|
|
// resetCode
|
|
|
@@ -162,7 +162,7 @@ public class PublicController extends BaseController {
|
|
|
String paramString = "{\"code\":\"" + mobileVerifyCode + "\",\"product\":\"阿凡提信息科技\"}";
|
|
|
String ret = MobileMessageUtils.sendMessage(mobileCodeTemplate, paramString, mobile, accessKey, accessSecret);
|
|
|
if (StringUtils.isNotBlank(ret)) {
|
|
|
- res.getError().add(buildError("", "获取手机验证码异常!"));
|
|
|
+ res.getError().add(buildError(ErrorConstants.MCODE_ERROR, "", "获取手机验证码异常!"));
|
|
|
}
|
|
|
return res;
|
|
|
}
|