Commit aa052074 authored by 董建华's avatar 董建华

秒转分钟

parent e4b76ef5
...@@ -99,7 +99,8 @@ public class CaptchaFiniteValidateAdvisor { ...@@ -99,7 +99,8 @@ public class CaptchaFiniteValidateAdvisor {
Long expire = redisTemplate.opsForValue().getOperations().getExpire(lock_key); Long expire = redisTemplate.opsForValue().getOperations().getExpire(lock_key);
if (expire != null && expire > 0L) { if (expire != null && expire > 0L) {
return JsonResult.buildErrorStateResult(String.format(ALERT_TEMP, expire), null); expire = expire > 60L ? expire / 60 : 1L;
return JsonResult.buildErrorStateResult(String.format(ALERT_TEMP, expire ), null);
} }
} }
...@@ -194,4 +195,5 @@ public class CaptchaFiniteValidateAdvisor { ...@@ -194,4 +195,5 @@ public class CaptchaFiniteValidateAdvisor {
return phonePasswordMap; return phonePasswordMap;
} }
} }
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