Commit 65b6c8c7 authored by 董建华's avatar 董建华

提交验证码

parent 7f2c0628
......@@ -172,7 +172,7 @@ public interface Constants {
/**
* 图形验证码有效期
*/
Long IMAGE_CAPTCHA_REDIS_CACHE_TIME_OUT = 1L;
Long IMAGE_CAPTCHA_REDIS_CACHE_TIME_OUT = 10L;
/**
* 默认随机密码长度
*/
......
......@@ -128,7 +128,7 @@ public class CaptchaFiniteValidateAdvisor {
String val = redisTemplate.opsForValue().get(Constants.IMAGE_CAPTCHA_REDIS_CACHE_KEY.concat(captchaId));
if(null == val){
return JsonResult.buildSuccessResult("图形验证码已过期,请重新获取", "", 2L);
return JsonResult.buildSuccessResult("图形验证码已过期", "", 2L);
}
// 验证码校验
Boolean validCaptcha = false;
......
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