From 0f1cbfc82d4d402e23ff79df2b3c16ef78f48092 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Wed, 24 Sep 2025 00:16:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E7=94=B5=E6=BA=90=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/task_manager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/core/task_manager.py b/app/core/task_manager.py index 0000c75..0737717 100644 --- a/app/core/task_manager.py +++ b/app/core/task_manager.py @@ -323,10 +323,15 @@ class _TaskManager: if mode == "自动代理" and task_id in Config.QueueConfig: - if Config.power_sign != "NoAction": + if Config.power_sign == "NoAction": Config.power_sign = Config.QueueConfig[task_id].get( "Info", "AfterAccomplish" ) + await Config.send_json( + WebSocketMessage( + id="Main", type="Update", data={"PowerSign": Config.power_sign} + ).model_dump() + ) if len(self.task_dict) == 0 and Config.power_sign != "NoAction": logger.info(f"所有任务已结束,准备执行电源操作: {Config.power_sign}")