From d6be75d6b72d153eeb6a6de8af9ff3f758d5242e Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Fri, 28 Aug 2026 05:19:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B8=E9=AA=8C=E6=97=A5=E6=8A=A5'?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E4=B8=80=E8=87=B4'=E5=8F=AA=E7=9C=8B?= =?UTF-8?q?=E8=BF=9C=E7=A8=8B/=E6=9C=AC=E5=9C=B0=E6=80=BB=E9=87=8F,=20?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=B7=AE=E5=BC=82=E5=8D=95=E7=8B=AC=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flows/monitor/daily_report.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flows/monitor/daily_report.py b/flows/monitor/daily_report.py index 83eeb4c..a7770d1 100644 --- a/flows/monitor/daily_report.py +++ b/flows/monitor/daily_report.py @@ -32,11 +32,12 @@ def _system_lines(name: str, report: dict, goods: dict, lines: list[str]) -> boo days_r = vr.get("days") or [] post = vr.get("post") if post: - remote_t, local_t, ok = post["remote"], post["local"], post.get("daysWithDiff", 0) == 0 + remote_t, local_t = post["remote"], post["local"] else: remote_t = sum(d.get("remote", 0) for d in days_r) local_t = sum(d.get("local", 0) for d in days_r) - ok = all(d.get("ok") for d in days_r) + # 数量一致只看总量;状态差异属第二段,不混入数量结论 + ok = remote_t == local_t if ok: lines.append(f"**{name} 订单** 远程 {remote_t:,} · 本地 {local_t:,} ✅")