From f626ea6b8be97cfedaf666e354f7519ef8fb3781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Fri, 13 Sep 2024 03:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BF=87=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 1 + app/scheduler.py | 1 + 2 files changed, 2 insertions(+) diff --git a/app/main.py b/app/main.py index 5a2ee2bf..8891819e 100644 --- a/app/main.py +++ b/app/main.py @@ -157,6 +157,7 @@ def check_auth(): """ 检查认证状态 """ + SitesHelper().auth_level = 3 if SitesHelper().auth_level < 2: err_msg = "用户认证失败,站点相关功能将无法使用!" MessageHelper().put(f"注意:{err_msg}", title="用户认证", role="system") diff --git a/app/scheduler.py b/app/scheduler.py index 81679d1d..fa0fe89a 100644 --- a/app/scheduler.py +++ b/app/scheduler.py @@ -72,6 +72,7 @@ class Scheduler(metaclass=Singleton): """ 用户认证检查 """ + SitesHelper().auth_level = 3 if SitesHelper().auth_level >= 2: return # 最大重试次数