From d50009030553a82900004586526c3d42d1f55ef7 Mon Sep 17 00:00:00 2001 From: aszerW Date: Thu, 19 Mar 2026 22:59:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(scripts):=20=E4=BF=AE=E6=AD=A3=E6=97=A5?= =?UTF-8?q?=E6=8A=A5=E5=8F=91=E9=80=81=E6=A0=87=E9=A2=98=E5=8F=8A=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将发送图文消息的标题由“ETF轮动策略日报”改为“ETF轮动策略调仓日报” - 调整发送图文消息中文本内容,去除默认提示 - 发送报告时不再传递固定摘要文本,改为传空字符串 - 修复了每日任务中报告发送的文本逻辑问题 --- scripts/daily_scheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/daily_scheduler.py b/scripts/daily_scheduler.py index a1ffd65..89ce757 100644 --- a/scripts/daily_scheduler.py +++ b/scripts/daily_scheduler.py @@ -166,8 +166,8 @@ def send_report_to_dingtalk(chart_path: str, summary_text: str = "") -> bool: # 发送图文消息 success = bot.send_image_via_oss( image_path=chart_path, - title=f"ETF轮动策略日报 ({today_str})", - text=summary_text or f"今日调仓信号已生成", + title=f"ETF轮动策略调仓日报 ({today_str})", + text=summary_text, expire_days=7, ) @@ -233,7 +233,7 @@ def daily_task(config_path: str = "config/strategies/rotation.yaml"): # 3. 发送报告 if result.get("chart_path"): send_report_to_dingtalk( - chart_path=result["chart_path"], summary_text="今日ETF轮动策略调仓信号" + chart_path=result["chart_path"], summary_text="" ) else: logger.warning("未找到报告图表")