|
@@ -35,24 +35,24 @@ public class ToUserServerImpl implements IToUserService {
|
35
|
35
|
if ("1234".equals(code)) {
|
36
|
36
|
|
37
|
37
|
} else if (StringUtils.isBlank(phoneCode) || !phoneCode.equals(code)) {
|
38
|
|
- response.addError("验证码错误!");
|
|
38
|
+ response.addError("验证码错误");
|
39
|
39
|
return response;
|
40
|
40
|
}
|
41
|
41
|
// 设置验证码为null字符
|
42
|
42
|
AppkeyCache.setCache(loginName,"null");
|
43
|
43
|
log.info("{} 手机号校验结果: {}",loginName,AccountValidatorUtil.isPhone(loginName));
|
44
|
44
|
if (!AccountValidatorUtil.isPhone(loginName)){
|
45
|
|
- response.addError("请输入正取的手机号!");
|
|
45
|
+ response.addError("该手机号不合法");
|
46
|
46
|
return response;
|
47
|
47
|
}
|
48
|
48
|
if (StringUtils.isBlank(code)) {
|
49
|
|
- response.addError("请输入验证码!");
|
|
49
|
+ response.addError("请输入验证码");
|
50
|
50
|
return response;
|
51
|
51
|
}
|
52
|
52
|
|
53
|
53
|
ToUser currentUser = toUserMapper.selectByLoginName(loginName);
|
54
|
54
|
if (null == currentUser) {
|
55
|
|
- response.addError("用户不存在!");
|
|
55
|
+ response.addError("您不是系统人员,不可登录");
|
56
|
56
|
return response;
|
57
|
57
|
}
|
58
|
58
|
|