diff --git a/app/main.py b/app/main.py index 8891819e..5a2ee2bf 100644 --- a/app/main.py +++ b/app/main.py @@ -157,7 +157,6 @@ 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 fa0fe89a..81679d1d 100644 --- a/app/scheduler.py +++ b/app/scheduler.py @@ -72,7 +72,6 @@ class Scheduler(metaclass=Singleton): """ 用户认证检查 """ - SitesHelper().auth_level = 3 if SitesHelper().auth_level >= 2: return # 最大重试次数 diff --git a/app/schemas/plugin.py b/app/schemas/plugin.py index 742ff1a7..1277b0e4 100644 --- a/app/schemas/plugin.py +++ b/app/schemas/plugin.py @@ -27,7 +27,7 @@ class Plugin(BaseModel): # 加载顺序 plugin_order: Optional[int] = 0 # 可使用的用户级别 - auth_level: Optional[int] = 0 + auth_level: Optional[int] = 3 # 是否已安装 installed: Optional[bool] = False # 运行状态