feat(mofin_db): flush_rec_digest推荐输出接入messenger(broadcast归档+xmpp推送)

This commit is contained in:
xxm
2026-08-21 20:36:57 +08:00
parent 91386530ee
commit 8433d46ed7
+6
View File
@@ -1904,6 +1904,12 @@ def flush_rec_digest(max_items=5):
try:
import sys as _s, os as _o2
_s.path.insert(0, '/home/hmo/MoFin/deploy/profile-scripts')
# 操作推荐:归档到 broadcast + 推 xmpp(统一消息处理者)
try:
from messenger import send_action_recommendation
send_action_recommendation(title="MoFin操作推荐", content="\n".join(lines), source="per_stock_reassess.py")
except Exception:
pass
from alert_helper import notify, ACTION
return notify("推荐操作", "\n".join(lines), ACTION)
except Exception as e: