From 63db67079afea444c5fed03124342c3c7ec25894 Mon Sep 17 00:00:00 2001 From: xxm Date: Wed, 19 Aug 2026 14:25:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(P1):=20fund=5Fflow=5Falert=E6=94=B9?= =?UTF-8?q?=E8=B5=B0alert=5Fhelper=E7=BB=9F=E4=B8=80=E7=BD=91=E5=85=B3(ACT?= =?UTF-8?q?ION=E7=BA=A7)=E2=80=94=E2=80=94=E6=9B=BF=E4=BB=A3=E7=9B=B4?= =?UTF-8?q?=E8=BF=9E5805=E6=97=81=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/fund_flow_alert.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy/profile-scripts/fund_flow_alert.py b/deploy/profile-scripts/fund_flow_alert.py index 1b77b96f..af7696c5 100644 --- a/deploy/profile-scripts/fund_flow_alert.py +++ b/deploy/profile-scripts/fund_flow_alert.py @@ -72,11 +72,10 @@ def _is_watchlist(code): def _send_xmpp(text): - """XMPP 推送(知微 bridge)""" + """XMPP 推送——2026-08-19 P1 统一网关:走 alert_helper(内容型 ACTION 级,30行容量+5min去重)""" try: - payload = json.dumps({"to": "hmo@yoin.fun", "body": text, "type": "chat"}).encode("utf-8") - req = urllib.request.Request(XMPP_SEND, data=payload, headers={"Content-Type": "application/json"}) - urllib.request.urlopen(req, timeout=5).read() + from alert_helper import notify, ACTION + notify("资金流异动", text, level=ACTION) except Exception as e: print(f"[XMPP失败] {e}", file=sys.stderr)