♻️ Refactoring code. close #3952 当客户端配置不存在时,不用校验验证码及优化
This commit is contained in:
1 parent
466072caf9
commit
a16fde7a3c
1 file changed
+2
-2
+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());
|
||||
|
||||
Reference in new issue
Block a user