From a3920f90849421445c44f1064c34d7b762adb138 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Mon, 8 Sep 2025 21:31:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A8=AA=E5=95=8F=E4=BB=A4=E7=89=8C?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E5=88=A4=E5=AE=9A=E9=82=8F=E8=BC=AF=E9=8C=AF?= =?UTF-8?q?=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/UserApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/UserApi.ts b/server/api/UserApi.ts index 732cd06..f076912 100644 --- a/server/api/UserApi.ts +++ b/server/api/UserApi.ts @@ -15,8 +15,8 @@ export default class UserApi extends BaseApi { } try { const access_token = TokenManager.decode(args.access_token as string) - - if (access_token.expired_time > Date.now()) return { + console.log(access_token) + if (access_token.expired_time < Date.now()) return { msg: "登錄令牌失效", code: 401, }