Commit 749fe9d515c321b643c66feb8bac852e282bc1a5

Authored by YunaiV
1 parent 7e6a3d2e

回退验证码到 1.0.2

yudao-dependencies/pom.xml
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 <!-- Bpm 工作流相关 --> 43 <!-- Bpm 工作流相关 -->
44 <flowable.version>6.8.0</flowable.version> 44 <flowable.version>6.8.0</flowable.version>
45 <!-- 工具类相关 --> 45 <!-- 工具类相关 -->
46 - <captcha-plus.version>1.0.4</captcha-plus.version> 46 + <captcha-plus.version>1.0.2</captcha-plus.version>
47 <jsoup.version>1.15.4</jsoup.version> 47 <jsoup.version>1.15.4</jsoup.version>
48 <lombok.version>1.18.26</lombok.version> 48 <lombok.version>1.18.26</lombok.version>
49 <mapstruct.version>1.5.5.Final</mapstruct.version> 49 <mapstruct.version>1.5.5.Final</mapstruct.version>
yudao-framework/yudao-spring-boot-starter-captcha/src/main/java/cn/iocoder/yudao/framework/captcha/config/YudaoCaptchaConfiguration.java
@@ -26,9 +26,9 @@ public class YudaoCaptchaConfiguration { @@ -26,9 +26,9 @@ public class YudaoCaptchaConfiguration {
26 26
27 @Bean 27 @Bean
28 public CaptchaCacheService captchaCacheService(AjCaptchaProperties config) { 28 public CaptchaCacheService captchaCacheService(AjCaptchaProperties config) {
29 - //缓存类型redis/local/.... 29 + // 缓存类型 redis/local/....
30 CaptchaCacheService ret = CaptchaServiceFactory.getCache(config.getCacheType().name()); 30 CaptchaCacheService ret = CaptchaServiceFactory.getCache(config.getCacheType().name());
31 - if(ret instanceof RedisCaptchaServiceImpl){ 31 + if (ret instanceof RedisCaptchaServiceImpl) {
32 ((RedisCaptchaServiceImpl)ret).setStringRedisTemplate(stringRedisTemplate); 32 ((RedisCaptchaServiceImpl)ret).setStringRedisTemplate(stringRedisTemplate);
33 } 33 }
34 return ret; 34 return ret;