From b70ef8914d50c6c0466987a3a8ccfb77d8e0b4a1 Mon Sep 17 00:00:00 2001 From: hmo Date: Fri, 14 Aug 2026 11:30:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E7=9B=98=E7=AE=80=E6=8A=A5?= =?UTF-8?q?=E9=80=9A=E9=81=93=E7=BB=9F=E4=B8=80=E2=80=94=E2=80=94generate?= =?UTF-8?q?=5Freport=E7=94=9F=E6=88=90=E7=AE=80=E6=8A=A5=E5=90=8E=E6=8E=A8?= =?UTF-8?q?=E9=80=81XMPP=20bridge(5805)=E8=AE=B0=E5=BD=95=E5=88=B0xmpp=5Fm?= =?UTF-8?q?essages.jsonl,=E5=90=8C=E6=97=B6=E8=AE=B0=E5=BD=95daily=5Fbrief?= =?UTF-8?q?.log=E7=BB=9F=E4=B8=80=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/generate_report.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/deploy/profile-scripts/generate_report.py b/deploy/profile-scripts/generate_report.py index b336fae6..a4caefe2 100644 --- a/deploy/profile-scripts/generate_report.py +++ b/deploy/profile-scripts/generate_report.py @@ -164,5 +164,20 @@ def main(): except Exception: pass + # 2026-08-14 通道统一:简报推送到 XMPP bridge(5805),记录到 xmpp_messages.jsonl + try: + import urllib.request as _ur + _body = filled.strip() + if _body: + _req = _ur.Request( + "http://127.0.0.1:5805/", + data=_body.encode("utf-8"), + headers={"Content-Type": "text/plain"}, + method="POST", + ) + _ur.urlopen(_req, timeout=5).read() + except Exception: + pass + if __name__ == "__main__": main()