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()