调整
This commit is contained in:
parent
515ce249bd
commit
fa9316fcf0
@ -117,7 +117,7 @@ public class UserService {
|
|||||||
DefaultUserRuleEnum userDefulatRole = Objects.nonNull(defulatRole) ? DefaultUserRuleEnum.ADMIN : DefaultUserRuleEnum.USER;
|
DefaultUserRuleEnum userDefulatRole = Objects.nonNull(defulatRole) ? DefaultUserRuleEnum.ADMIN : DefaultUserRuleEnum.USER;
|
||||||
long remainingSecond = 0;
|
long remainingSecond = 0;
|
||||||
List<AuthRole> roleList = null;
|
List<AuthRole> roleList = null;
|
||||||
if (Objects.nonNull(iat) && !Objects.nonNull(exp)) {
|
if (Objects.nonNull(iat) && Objects.nonNull(exp)) {
|
||||||
Instant iatInstant = (Instant) iat;
|
Instant iatInstant = (Instant) iat;
|
||||||
Instant expInstant = (Instant) exp;
|
Instant expInstant = (Instant) exp;
|
||||||
remainingSecond = expInstant.getEpochSecond() - iatInstant.getEpochSecond();
|
remainingSecond = expInstant.getEpochSecond() - iatInstant.getEpochSecond();
|
||||||
|
Loading…
Reference in New Issue
Block a user