From b4baa4229f9827190f7ff2c67e59a2a4dcd0ebbb Mon Sep 17 00:00:00 2001
From: click33 <2393584716@qq.com>
Date: Fri, 10 May 2024 14:32:45 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Deff=E4=B8=BAnull=E6=97=B6?=
=?UTF-8?q?=E6=8A=A5=E7=A9=BA=E6=8C=87=E9=92=88=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sa-token-plugin/sa-token-temp-jwt/pom.xml | 6 ++++++
.../src/main/java/cn/dev33/satoken/temp/jwt/SaJwtUtil.java | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
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);
}