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