回退验证码到 1.0.2

This commit is contained in:
YunaiV 2023-06-17 12:19:46 +08:00
parent 7e6a3d2e36
commit 749fe9d515
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
<!-- Bpm 工作流相关 --> <!-- Bpm 工作流相关 -->
<flowable.version>6.8.0</flowable.version> <flowable.version>6.8.0</flowable.version>
<!-- 工具类相关 --> <!-- 工具类相关 -->
<captcha-plus.version>1.0.4</captcha-plus.version> <captcha-plus.version>1.0.2</captcha-plus.version>
<jsoup.version>1.15.4</jsoup.version> <jsoup.version>1.15.4</jsoup.version>
<lombok.version>1.18.26</lombok.version> <lombok.version>1.18.26</lombok.version>
<mapstruct.version>1.5.5.Final</mapstruct.version> <mapstruct.version>1.5.5.Final</mapstruct.version>

View File

@ -26,9 +26,9 @@ public class YudaoCaptchaConfiguration {
@Bean @Bean
public CaptchaCacheService captchaCacheService(AjCaptchaProperties config) { public CaptchaCacheService captchaCacheService(AjCaptchaProperties config) {
//缓存类型redis/local/.... // 缓存类型 redis/local/....
CaptchaCacheService ret = CaptchaServiceFactory.getCache(config.getCacheType().name()); CaptchaCacheService ret = CaptchaServiceFactory.getCache(config.getCacheType().name());
if(ret instanceof RedisCaptchaServiceImpl){ if (ret instanceof RedisCaptchaServiceImpl) {
((RedisCaptchaServiceImpl)ret).setStringRedisTemplate(stringRedisTemplate); ((RedisCaptchaServiceImpl)ret).setStringRedisTemplate(stringRedisTemplate);
} }
return ret; return ret;