From 8a73a2281d37f0797cae70ac05ea959a3bc06f70 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Thu, 17 Apr 2025 12:11:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E6=97=B6=E9=97=B4=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/authorization/token/redis/RedisUserTokenManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/token/redis/RedisUserTokenManager.java b/hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/token/redis/RedisUserTokenManager.java index d789157aa..8e2488c60 100644 --- a/hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/token/redis/RedisUserTokenManager.java +++ b/hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/token/redis/RedisUserTokenManager.java @@ -250,7 +250,7 @@ public class RedisUserTokenManager implements UserTokenManager { })) .then(Mono.defer(() -> { if (expires > 0) { - return operations.expire(key, Duration.ofMillis(expires)); + return operations.expire(key, Duration.ofMillis(event.getExpires())); } return Mono.empty(); }))