Prechádzať zdrojové kódy

回退验证码到 1.0.2

YunaiV 1 rok pred
rodič
commit
749fe9d515

+ 1 - 1
yudao-dependencies/pom.xml

@@ -43,7 +43,7 @@
         <!-- Bpm 工作流相关 -->
         <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>
         <lombok.version>1.18.26</lombok.version>
         <mapstruct.version>1.5.5.Final</mapstruct.version>

+ 2 - 2
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 {
 
     @Bean
     public CaptchaCacheService captchaCacheService(AjCaptchaProperties config) {
-        //缓存类型redis/local/....
+        // 缓存类型 redis/local/....
         CaptchaCacheService ret = CaptchaServiceFactory.getCache(config.getCacheType().name());
-        if(ret instanceof RedisCaptchaServiceImpl){
+        if (ret instanceof RedisCaptchaServiceImpl) {
             ((RedisCaptchaServiceImpl)ret).setStringRedisTemplate(stringRedisTemplate);
         }
         return ret;