lyhzzz 2 년 전
부모
커밋
ef044717c7
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      src/main/java/com/fdkankan/fusion/controller/NoLoginController.java

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

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