From 908da0bc47efede0c72094c6b7c1eddd5aafea5f Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Fri, 1 Aug 2025 09:35:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E8=A1=A8=E6=9C=AA=E8=83=BD=E6=8C=89=E7=85=A7=E9=B9=B0=E5=8E=86?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=85=B3=E5=8D=A1=E5=8F=B7=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/config.py | 9 ++++++++- resources/version.json | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/core/config.py b/app/core/config.py index dc55f5f..dccade8 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -565,9 +565,16 @@ class MaaPlanConfig(LQConfig): """获取当前的计划表配置项""" if self.get(self.Info_Mode) == "ALL": + return self.config_item_dict["ALL"][name] + elif self.get(self.Info_Mode) == "Weekly": - today = datetime.now().strftime("%A") + + dt = datetime.now() + if dt.time() < datetime.min.time().replace(hour=4): + dt = dt - timedelta(days=1) + today = dt.strftime("%A") + if today in self.config_item_dict: return self.config_item_dict[today][name] else: diff --git a/resources/version.json b/resources/version.json index fcfc6a3..8204af9 100644 --- a/resources/version.json +++ b/resources/version.json @@ -4,6 +4,9 @@ "4.4.1.6": { "新增功能": [ "启动时支持直接运行复数调度队列" + ], + "修复BUG": [ + "修复计划表未能按照鹰历获取关卡号的问题" ] }, "4.4.1.5": {