mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 10:57:49 +08:00
refactor: 优化过期时间处理
This commit is contained in:
@@ -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();
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user