From 5659c30bd1f34590e221ff6ff1b1351b1b049ed6 Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Thu, 27 Aug 2026 11:02:24 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E6=8A=A5=E6=8E=AA=E8=BE=9E?= =?UTF-8?q?=E6=94=B9=E4=B8=BA'=E5=B7=B2=E8=A1=A5=E6=8B=89',=E5=B7=AE?= =?UTF-8?q?=E5=BC=82=E6=8C=81=E7=BB=AD=E5=AD=98=E5=9C=A8=E6=97=B6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8F=A3=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flows/monitor/daily_report.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flows/monitor/daily_report.py b/flows/monitor/daily_report.py index c4a7481..6b44a35 100644 --- a/flows/monitor/daily_report.py +++ b/flows/monitor/daily_report.py @@ -25,7 +25,7 @@ def _verify_section(name: str, report: dict) -> tuple[str, list[str], bool]: summary = (report.get("verifyReport") or {}).get("summary") or {} diff_days = [d for d in days if not d.get("ok")] total, n_diff = summary.get("totalDays", len(days)), summary.get("daysWithDiff", len(diff_days)) - head = f"**{name}**: {total} 天中 {total - n_diff} 天一致" + (" ✅" if not diff_days else f", {n_diff} 天有差异已修复") + head = f"**{name}**: {total} 天中 {total - n_diff} 天一致" + (" ✅" if not diff_days else f", {n_diff} 天有差异(已补拉)") detail = [ f"- {d['date']}: 本地 {d.get('local', '—')} / 远程 {d.get('remote', '—')}," f"差异 {d.get('diff') or '—'},已补拉 订单 {d.get('orders', 0)} / 商品 {d.get('goods', 0)}" @@ -33,7 +33,9 @@ def _verify_section(name: str, report: dict) -> tuple[str, list[str], bool]: ] totals = {k: v for k, v in summary.items() if k not in ("totalDays", "daysWithDiff")} if any(totals.values()): - detail.append(f"- 修复量合计: {totals}") + detail.append(f"- 补拉量合计: {totals}") + if diff_days: + detail.append("- 注: 差异日已重新补拉;若同一差异长期存在,多为远程统计口径与本地状态映射不一致(如发货后退款未同步),需单独排查") return head, detail, bool(diff_days)