Commit 37d00cb1 authored by 董建华's avatar 董建华

调整提示语时间

parent c2fab050
...@@ -97,7 +97,7 @@ public class CaptchaFiniteValidateAdvisor { ...@@ -97,7 +97,7 @@ public class CaptchaFiniteValidateAdvisor {
if (countErrorByPhone > Constants.Image_Need_Count) { if (countErrorByPhone > Constants.Image_Need_Count) {
/** /**
* 输入密码错误超过一定次数限制登陆 * 输入密码错误超过一定次数限制登陆
*/ */
if (countErrorByPhone >= Constants.PASSWORD_ERROR_LOCK_COUNT) { if (countErrorByPhone >= Constants.PASSWORD_ERROR_LOCK_COUNT) {
String lock_key = Constants.PASSWORD_LOCK_PRE.concat(phoneNo); String lock_key = Constants.PASSWORD_LOCK_PRE.concat(phoneNo);
...@@ -105,12 +105,12 @@ public class CaptchaFiniteValidateAdvisor { ...@@ -105,12 +105,12 @@ public class CaptchaFiniteValidateAdvisor {
Long expire = redisTemplate.opsForValue().getOperations().getExpire(lock_key); Long expire = redisTemplate.opsForValue().getOperations().getExpire(lock_key);
/** /**
* 查看锁的剩余时间不存在说明已经解锁 * 查看锁的剩余时间不存在说明已经解锁
*/ */
if (null != expire && expire > 0L) { if (null != expire && expire > 0L) {
/** /**
* 获取到的时间是秒 转化为分 大概转一下吧不要太精确 * 获取到的时间是秒 转化为分 大概转一下吧不要太精确
*/ */
expire = expire > 60L ? expire / 60 : 1L; expire = expire > 60L ? expire / 60 + 1 : 1L;
return JsonResult.buildErrorStateResult(String.format(ALERT_TEMP, expire), null, TOME_LIMIT_CODE); return JsonResult.buildErrorStateResult(String.format(ALERT_TEMP, expire), null, TOME_LIMIT_CODE);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment