From fa9316fcf07094d1ed7b414fb470e56e7700116a Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 18 Oct 2024 16:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/club/joylink/xiannccda/service/UserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/xiannccda/service/UserService.java b/src/main/java/club/joylink/xiannccda/service/UserService.java index 664c1d8..2af195a 100644 --- a/src/main/java/club/joylink/xiannccda/service/UserService.java +++ b/src/main/java/club/joylink/xiannccda/service/UserService.java @@ -117,7 +117,7 @@ public class UserService { DefaultUserRuleEnum userDefulatRole = Objects.nonNull(defulatRole) ? DefaultUserRuleEnum.ADMIN : DefaultUserRuleEnum.USER; long remainingSecond = 0; List roleList = null; - if (Objects.nonNull(iat) && !Objects.nonNull(exp)) { + if (Objects.nonNull(iat) && Objects.nonNull(exp)) { Instant iatInstant = (Instant) iat; Instant expInstant = (Instant) exp; remainingSecond = expInstant.getEpochSecond() - iatInstant.getEpochSecond();