Browse Source

!143 修改错误单词拼写

Merge pull request !143 from 云川/master
tags/v3.5.0
若依 3 years ago committed by Gitee
parent
commit
5800ac6b9e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 4
      ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/ValidateCodeFilter.java
  2. 6
      ruoyi-gateway/src/main/java/com/ruoyi/gateway/handler/ValidateCodeHandler.java
  3. 6
      ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/ValidateCodeService.java
  4. 4
      ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/impl/ValidateCodeServiceImpl.java

4
ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/ValidateCodeFilter.java

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

6
ruoyi-gateway/src/main/java/com/ruoyi/gateway/handler/ValidateCodeHandler.java

@ -15,7 +15,7 @@ import reactor.core.publisher.Mono; @@ -15,7 +15,7 @@ import reactor.core.publisher.Mono;
/**
* 验证码获取
*
*
* @author ruoyi
*/
@Component
@ -30,7 +30,7 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse> @@ -30,7 +30,7 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
AjaxResult ajax;
try
{
ajax = validateCodeService.createCapcha();
ajax = validateCodeService.createCaptcha();
}
catch (CaptchaException | IOException e)
{
@ -38,4 +38,4 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse> @@ -38,4 +38,4 @@ public class ValidateCodeHandler implements HandlerFunction<ServerResponse>
}
return ServerResponse.status(HttpStatus.OK).body(BodyInserters.fromValue(ajax));
}
}
}

6
ruoyi-gateway/src/main/java/com/ruoyi/gateway/service/ValidateCodeService.java

@ -6,7 +6,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult; @@ -6,7 +6,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
/**
* 验证码处理
*
*
* @author ruoyi
*/
public interface ValidateCodeService
@ -14,10 +14,10 @@ public interface ValidateCodeService @@ -14,10 +14,10 @@ public interface ValidateCodeService
/**
* 生成验证码
*/
public AjaxResult createCapcha() throws IOException, CaptchaException;
public AjaxResult createCaptcha() throws IOException, CaptchaException;
/**
* 校验验证码
*/
public void checkCapcha(String key, String value) throws CaptchaException;
public void checkCaptcha(String key, String value) throws CaptchaException;
}

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

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

Loading…
Cancel
Save