From 33a0ddc6f96ef30bdd3dbbd734468cadcb5783c6 Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Wed, 9 Oct 2024 11:25:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=97=A5=E5=BF=97=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/njcn/gateway/config/ResourceServerConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pqs-gateway/src/main/java/com/njcn/gateway/config/ResourceServerConfig.java b/pqs-gateway/src/main/java/com/njcn/gateway/config/ResourceServerConfig.java index b02a7d019..028c2a87b 100644 --- a/pqs-gateway/src/main/java/com/njcn/gateway/config/ResourceServerConfig.java +++ b/pqs-gateway/src/main/java/com/njcn/gateway/config/ResourceServerConfig.java @@ -122,7 +122,7 @@ public class ResourceServerConfig { return (exchange, e) -> Mono.defer(() -> Mono.just(exchange.getResponse())) .flatMap(response -> { ServerHttpRequest request = exchange.getRequest(); - JSONObject jsonObject = WebFluxRequestUtil.getJwtPayload(request); + /* JSONObject jsonObject = WebFluxRequestUtil.getJwtPayload(request); if(Objects.isNull(jsonObject)){ String ip = WebFluxRequestUtil.getRealIp(request); LogInfoDTO logInfoDTO = new LogInfoDTO( @@ -141,7 +141,7 @@ public class ResourceServerConfig { ); publisher.send("/userLog", PubUtils.obj2json(logInfoDTO), 2, false); publisher.send("/userLogPush", PubUtils.obj2json(logInfoDTO), 2, false); - } + }*/ return ResponseUtils.writeErrorInfo(response, GateWayEnum.ACCESS_TOKEN_EXPIRE_JWT); }); }