Browse Source

修改错误单词拼写,由**Capcha**改为**Captcha**

liuyuchuan 4 years ago
parent
commit
c57ec64e63

+ 2 - 2
ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/ValidateCodeFilter.java

@@ -19,7 +19,7 @@ import reactor.core.publisher.Flux;
19
 
19
 
20
 /**
20
 /**
21
  * 验证码过滤器
21
  * 验证码过滤器
22
- * 
22
+ *
23
  * @author ruoyi
23
  * @author ruoyi
24
  */
24
  */
25
 @Component
25
 @Component
@@ -53,7 +53,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
53
             {
53
             {
54
                 String rspStr = resolveBodyFromRequest(request);
54
                 String rspStr = resolveBodyFromRequest(request);
55
                 JSONObject obj = JSONObject.parseObject(rspStr);
55
                 JSONObject obj = JSONObject.parseObject(rspStr);
56
-                validateCodeService.checkCapcha(obj.getString(CODE), obj.getString(UUID));
56
+                validateCodeService.checkCaptcha(obj.getString(CODE), obj.getString(UUID));
57
             }
57
             }
58
             catch (Exception e)
58
             catch (Exception e)
59
             {
59
             {

+ 3 - 3
ruoyi-gateway/src/main/java/com/ruoyi/gateway/handler/ValidateCodeHandler.java

@@ -15,7 +15,7 @@ import reactor.core.publisher.Mono;
15
 
15
 
16
 /**
16
 /**
17
  * 验证码获取
17
  * 验证码获取
18
- * 
18
+ *
19
  * @author ruoyi
19
  * @author ruoyi
20
  */
20
  */
21
 @Component
21
 @Component
@@ -30,7 +30,7 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
30
         AjaxResult ajax;
30
         AjaxResult ajax;
31
         try
31
         try
32
         {
32
         {
33
-            ajax = validateCodeService.createCapcha();
33
+            ajax = validateCodeService.createCaptcha();
34
         }
34
         }
35
         catch (CaptchaException | IOException e)
35
         catch (CaptchaException | IOException e)
36
         {
36
         {
@@ -38,4 +38,4 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
38
         }
38
         }
39
         return ServerResponse.status(HttpStatus.OK).body(BodyInserters.fromValue(ajax));
39
         return ServerResponse.status(HttpStatus.OK).body(BodyInserters.fromValue(ajax));
40
     }
40
     }
41
-}
41
+}

+ 3 - 3
ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/ValidateCodeService.java

@@ -6,7 +6,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
6
 
6
 
7
 /**
7
 /**
8
  * 验证码处理
8
  * 验证码处理
9
- * 
9
+ *
10
  * @author ruoyi
10
  * @author ruoyi
11
  */
11
  */
12
 public interface ValidateCodeService
12
 public interface ValidateCodeService
@@ -14,10 +14,10 @@ public interface ValidateCodeService
14
     /**
14
     /**
15
      * 生成验证码
15
      * 生成验证码
16
      */
16
      */
17
-    public AjaxResult createCapcha() throws IOException, CaptchaException;
17
+    public AjaxResult createCaptcha() throws IOException, CaptchaException;
18
 
18
 
19
     /**
19
     /**
20
      * 校验验证码
20
      * 校验验证码
21
      */
21
      */
22
-    public void checkCapcha(String key, String value) throws CaptchaException;
22
+    public void checkCaptcha(String key, String value) throws CaptchaException;
23
 }
23
 }

+ 2 - 2
ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java

@@ -43,7 +43,7 @@ public class ValidateCodeServiceImpl implements ValidateCodeService
43
      * 生成验证码
43
      * 生成验证码
44
      */
44
      */
45
     @Override
45
     @Override
46
-    public AjaxResult createCapcha() throws IOException, CaptchaException
46
+    public AjaxResult createCaptcha() throws IOException, CaptchaException
47
     {
47
     {
48
         AjaxResult ajax = AjaxResult.success();
48
         AjaxResult ajax = AjaxResult.success();
49
         boolean captchaOnOff = captchaProperties.getEnabled();
49
         boolean captchaOnOff = captchaProperties.getEnabled();
@@ -96,7 +96,7 @@ public class ValidateCodeServiceImpl implements ValidateCodeService
96
      * 校验验证码
96
      * 校验验证码
97
      */
97
      */
98
     @Override
98
     @Override
99
-    public void checkCapcha(String code, String uuid) throws CaptchaException
99
+    public void checkCaptcha(String code, String uuid) throws CaptchaException
100
     {
100
     {
101
         if (StringUtils.isEmpty(code))
101
         if (StringUtils.isEmpty(code))
102
         {
102
         {