From a16fde7a3c1d74ab98d47c41431858f488da30af Mon Sep 17 00:00:00 2001 From: lbw Date: Sun, 29 May 2022 13:53:26 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactoring=20code.=20close=20#3952?= =?UTF-8?q?=20=E5=BD=93=E5=AE=A2=E6=88=B7=E7=AB=AF=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=97=B6=EF=BC=8C=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=AA=8C=E8=AF=81=E7=A0=81=E5=8F=8A=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pigx/gateway/filter/ValidateCodeGatewayFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pigx-gateway/src/main/java/com/pig4cloud/pigx/gateway/filter/ValidateCodeGatewayFilter.java b/pigx-gateway/src/main/java/com/pig4cloud/pigx/gateway/filter/ValidateCodeGatewayFilter.java index 711662a30..d97f1b219 100644 --- a/pigx-gateway/src/main/java/com/pig4cloud/pigx/gateway/filter/ValidateCodeGatewayFilter.java +++ b/pigx-gateway/src/main/java/com/pig4cloud/pigx/gateway/filter/ValidateCodeGatewayFilter.java @@ -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());