From 051b56cdd6674a3ef5ed6264900361d325d07d50 Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 24 Aug 2026 11:51:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fund=5Fflow=5Falert=E4=B8=89=E4=BF=AE?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=91=A0=E9=87=8D=E8=AF=84timeout120?= =?UTF-8?q?=E2=86=92300(LLM12=E7=BB=B4=E5=AE=9E=E6=B5=8B104-200s,120?= =?UTF-8?q?=E5=BF=85=E8=B6=85=E6=97=B6=E8=87=B4'=E9=87=8D=E8=AF=84?= =?UTF-8?q?=E5=BC=82=E5=B8=B8')=E2=91=A1name=E7=BC=BA=E5=A4=B1=E6=9F=A5sto?= =?UTF-8?q?cks=E5=85=9C=E5=BA=95(603920=E6=98=BE=E7=A4=BA=E4=BB=A3?= =?UTF-8?q?=E7=A0=81)=E2=91=A2=E8=B5=84=E9=87=91=E6=B5=81=E5=BC=82?= =?UTF-8?q?=E5=8A=A8=E6=97=A0=E6=93=8D=E4=BD=9C=E5=BB=BA=E8=AE=AE=E2=86=92?= =?UTF-8?q?=E5=8F=AA=E8=BF=9Bbroadcast=E4=B8=8D=E6=8E=A8XMPP(=E8=80=81?= =?UTF-8?q?=E8=8E=AB=E6=96=B0=E8=A7=84=E5=88=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/fund_flow_alert.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deploy/profile-scripts/fund_flow_alert.py b/deploy/profile-scripts/fund_flow_alert.py index af7696c5..08a1ed6b 100644 --- a/deploy/profile-scripts/fund_flow_alert.py +++ b/deploy/profile-scripts/fund_flow_alert.py @@ -72,12 +72,13 @@ def _is_watchlist(code): def _send_xmpp(text): - """XMPP 推送——2026-08-19 P1 统一网关:走 alert_helper(内容型 ACTION 级,30行容量+5min去重)""" + """消息出口——2026-08-24 老莫新规则:资金流异动属"无操作建议"信息,只进 broadcast + 归档不推 XMPP;若重评产出操作级结论,由 reconcile→tag→推荐通道自行推送,不重复。""" try: - from alert_helper import notify, ACTION - notify("资金流异动", text, level=ACTION) + from messenger import send as _msend + _msend(title="资金流异动", content=text, source="fund_flow_alert.py", channel="broadcast") except Exception as e: - print(f"[XMPP失败] {e}", file=sys.stderr) + print(f"[broadcast失败] {e}", file=sys.stderr) def process_flow_alerts(all_flows):