Browse Source

feat(口腔医院): 修改短信提示语

matianxiang 1 month ago
parent
commit
71e8e79854

+ 4 - 7
eitc-common/src/main/java/com/eitc/common/utils/CryptoUtil.java

@@ -105,12 +105,9 @@ public class CryptoUtil {
105 105
     }
106 106
 
107 107
     public static void main(String[] args) {
108
-
109
-
110
-
111
-       String a = encrypt("123456");
112
-       System.out.println(a);
113
-       String b = decrypt(a);
114
-       System.out.println(b);
108
+        String a = encrypt("123456");
109
+        System.out.println(a);
110
+        String b = decrypt(a);
111
+        System.out.println(b);
115 112
     }
116 113
 }

+ 2 - 2
eitc-patient-base/src/main/java/com/eitc/patient/service/impl/AppUserServiceImpl.java

@@ -84,7 +84,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
84 84
             repeatNum = redisCache.getCacheObject(repeat);
85 85
             int num = maxRetryCount;
86 86
             if (repeatNum >= num) {
87
-                return AjaxResult.error("验证码发送次数超过" + num + "次,请后再试");
87
+                return AjaxResult.error("验证码发送次数超过" + num + "次,请30分钟后再试");
88 88
             }
89 89
             repeatNum++;
90 90
         }
@@ -254,7 +254,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
254 254
             repeatNum = redisCache.getCacheObject(repeat);
255 255
             // 如果当前重复次数超过最大允许次数,则抛出异常。
256 256
             if (repeatNum >= maxRetryCount) {
257
-                throw new RuntimeException("登录失败次数超过" + maxRetryCount + "次,请后再试");
257
+                throw new RuntimeException("登录失败次数超过" + maxRetryCount + "次,请" + lockTime + "分钟后再试");
258 258
             }
259 259
             // 本次登录尝试后,累计重复次数加1。
260 260
             repeatNum++;