Ver código fonte

修改提示文字

weiximei 6 anos atrás
pai
commit
86ec81c1d0

+ 4
- 4
CODE/smart-community/operate-api/src/main/java/com/community/huiju/service/impl/ToUserServerImpl.java Ver arquivo

@@ -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
 

+ 2
- 2
VUECODE/smart-operate-manage/src/views/login/index.vue Ver arquivo

@@ -60,14 +60,14 @@ export default {
60 60
   data () {
61 61
     const validateUsername = (rule, value, callback) => {
62 62
       if (!isvalidUsername(value)) {
63
-        callback(new Error('请输入正确的手机号码'))
63
+        callback(new Error('该手机号不合法'))
64 64
       } else {
65 65
         callback()
66 66
       }
67 67
     }
68 68
     const validateIndexCode = (rule, value, callback) => {
69 69
       if (!validatCode(value)) {
70
-        callback(new Error('请输入四位验证码'))
70
+        callback(new Error('请输入验证码'))
71 71
       } else {
72 72
         callback()
73 73
       }