This commit is contained in:
tiger_zhou 2024-10-18 16:41:06 +08:00
parent 515ce249bd
commit fa9316fcf0

View File

@ -117,7 +117,7 @@ public class UserService {
DefaultUserRuleEnum userDefulatRole = Objects.nonNull(defulatRole) ? DefaultUserRuleEnum.ADMIN : DefaultUserRuleEnum.USER;
long remainingSecond = 0;
List<AuthRole> 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();