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

pull/143/head
liuyuchuan 3 years ago
parent 1a1d6562d2
commit c57ec64e63

@ -19,7 +19,7 @@ import reactor.core.publisher.Flux;
/**
*
*
*
* @author ruoyi
*/
@Component
@ -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)
{

@ -15,7 +15,7 @@ import reactor.core.publisher.Mono;
/**
*
*
*
* @author ruoyi
*/
@Component
@ -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>
}
return ServerResponse.status(HttpStatus.OK).body(BodyInserters.fromValue(ajax));
}
}
}

@ -6,7 +6,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
/**
*
*
*
* @author ruoyi
*/
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;
}

@ -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
*
*/
@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