refactor: 优化过期时间处理

This commit is contained in:
zhouhao
2025-04-17 12:11:10 +08:00
parent 0ae207408b
commit 8a73a2281d

View File

@@ -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();
}))