lyhzzz 1 سال پیش
والد
کامیت
701e06aa03
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/com/fdkankan/fusion/controller/NoLoginController.java

+ 1 - 1
src/main/java/com/fdkankan/fusion/controller/NoLoginController.java

@@ -39,7 +39,7 @@ public class NoLoginController {
         String id = request.getSession().getId();
         String id = request.getSession().getId();
         try {
         try {
             LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 100,4,60);
             LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 100,4,60);
-            redisUtil.set(String.format(RedisKeyUtil.loginAuthCode,lineCaptcha.getCode()),lineCaptcha.getCode(),30);
+            redisUtil.set(String.format(RedisKeyUtil.loginAuthCode,lineCaptcha.getCode()),lineCaptcha.getCode(),60*5);
             lineCaptcha.write(response.getOutputStream());
             lineCaptcha.write(response.getOutputStream());
             response.getOutputStream().close();
             response.getOutputStream().close();
         } catch (Exception e){
         } catch (Exception e){