diff --git a/sa-token-plugin/sa-token-temp-jwt/pom.xml b/sa-token-plugin/sa-token-temp-jwt/pom.xml index 204c0a8f..58c64275 100644 --- a/sa-token-plugin/sa-token-temp-jwt/pom.xml +++ b/sa-token-plugin/sa-token-temp-jwt/pom.xml @@ -27,6 +27,12 @@ io.jsonwebtoken jjwt + + + javax.xml.bind + jaxb-api + 2.3.1 + diff --git a/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/temp/jwt/SaJwtUtil.java b/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/temp/jwt/SaJwtUtil.java index 88dac617..2866318b 100644 --- a/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/temp/jwt/SaJwtUtil.java +++ b/sa-token-plugin/sa-token-temp-jwt/src/main/java/cn/dev33/satoken/temp/jwt/SaJwtUtil.java @@ -99,7 +99,7 @@ public class SaJwtUtil { // 验证是否超时 Long eff = claims.get(KEY_EFF, Long.class); - if((eff == null || eff < System.currentTimeMillis()) && eff != NEVER_EXPIRE) { + if(eff == null || (eff < System.currentTimeMillis() && eff != NEVER_EXPIRE)) { throw new SaTokenException("token 已超时,无法解析:" + jwtToken).setCode(SaTempJwtErrorCode.CODE_30303); }