回退验证码到 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

@ -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;