Просмотр исходного кода

!143 修改错误单词拼写
Merge pull request !143 from 云川/master

若依 лет назад: 4
Родитель
Сommit
5800ac6b9e

+ 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 23
  * @author ruoyi
24 24
  */
25 25
 @Component
@@ -53,7 +53,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
53 53
             {
54 54
                 String rspStr = resolveBodyFromRequest(request);
55 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 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 19
  * @author ruoyi
20 20
  */
21 21
 @Component
@@ -30,7 +30,7 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
30 30
         AjaxResult ajax;
31 31
         try
32 32
         {
33
-            ajax = validateCodeService.createCapcha();
33
+            ajax = validateCodeService.createCaptcha();
34 34
         }
35 35
         catch (CaptchaException | IOException e)
36 36
         {
@@ -38,4 +38,4 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
38 38
         }
39 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 10
  * @author ruoyi
11 11
  */
12 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 45
     @Override
46
-    public AjaxResult createCapcha() throws IOException, CaptchaException
46
+    public AjaxResult createCaptcha() throws IOException, CaptchaException
47 47
     {
48 48
         AjaxResult ajax = AjaxResult.success();
49 49
         boolean captchaOnOff = captchaProperties.getEnabled();
@@ -96,7 +96,7 @@ public class ValidateCodeServiceImpl implements ValidateCodeService
96 96
      * 校验验证码
97 97
      */
98 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 101
         if (StringUtils.isEmpty(code))
102 102
         {