♻️ Refactoring code. close #3952 当客户端配置不存在时,不用校验验证码及优化

This commit is contained in:
lbw committed 2022-05-29 13:53:26 +08:00
1 parent 466072caf9
commit a16fde7a3c
1 file changed
+2 -2
@@ -119,9 +119,9 @@ public class ValidateCodeGatewayFilter extends AbstractGatewayFilterFactory {
redisTemplate.setKeySerializer(new StringRedisSerializer());
Object val = redisTemplate.opsForValue().get(key);
// 当配置不存在时,默认需要校验
// 当配置不存在时,不用校验
if (val == null) {
return true;
return false;
}
JSONObject information = JSONUtil.parseObj(val.toString());