From 03fe8ef90cd04b360a5894b7bb620a9d36c921af Mon Sep 17 00:00:00 2001 From: qsc20001102 Date: Wed, 24 Dec 2025 11:37:08 +0800 Subject: [PATCH] 11 --- core/async_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/async_task.py b/core/async_task.py index 25fe94c..7d716de 100644 --- a/core/async_task.py +++ b/core/async_task.py @@ -78,6 +78,7 @@ class AsyncTask: async def _cycle_common(self,fetch_func, conf: dict, state: dict, namefun: str, local_key: str): """后台程序""" + # 调用函数获取最新数据 try: state["state_old"] = await self.get_local_data(local_key) @@ -131,7 +132,7 @@ class AsyncTask: conf = self.conf.get("kfjk", {}) self.kfjk_conf = { "enable": conf.get("enable", True), - "time": conf.get("time", 10), + "time": conf.get("time", 60), "umos": conf.get("umos", []), } # 状态记录