Przeglądaj źródła

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

matianxiang 1 miesiąc temu
rodzic
commit
015f358681

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

@@ -79,16 +79,16 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
79 79
         // 校验验证码发送是否超过限制
80 80
         String key = PatientConstant.ERM_APP_CAPTCHA_CODE + phoneNumber;
81 81
         String repeat = key + ":repeat";
82
-        int repeatNum = 1;
82
+        int repeatNum = 1, timeout = 30;
83 83
         if (redisCache.hasKey(repeat)) {
84 84
             repeatNum = redisCache.getCacheObject(repeat);
85 85
             int num = maxRetryCount;
86 86
             if (repeatNum >= num) {
87
-                return AjaxResult.error("验证码发送次数超过" + num + "次,请30分钟后再试");
87
+                return AjaxResult.error("验证码发送次数超过" + num + "次,请" + timeout + "分钟后再试");
88 88
             }
89 89
             repeatNum++;
90 90
         }
91
-        redisCache.setCacheObject(repeat, repeatNum, 30, TimeUnit.MINUTES);
91
+        redisCache.setCacheObject(repeat, repeatNum, timeout, TimeUnit.MINUTES);
92 92
 
93 93
         // 生成验证码
94 94
         int captchaCode = PatientBaseUtil.getCaptchaCode();