feat: 开盘简报通道统一——generate_report生成简报后推送XMPP bridge(5805)记录到xmpp_messages.jsonl,同时记录daily_brief.log统一日志
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user