From 578f50f5df4b8cff435a7d53cdd040efa454e6d8 Mon Sep 17 00:00:00 2001 From: kingmo888 <17401091+kingmo888@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E5=BD=B1=E5=93=8D=E5=B0=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/views_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views_api.py b/api/views_api.py index c1c34ad..7b57be8 100644 --- a/api/views_api.py +++ b/api/views_api.py @@ -54,7 +54,7 @@ def login(request): # 检查是否过期 if token: now_t = datetime.datetime.now() - nums = (now_t - token.create_time).seconds + nums = (now_t - token.create_time).seconds if now_t > token.create_time else 0 if nums >= EFFECTIVE_SECONDS: token.delete() token = None