企业微信只做推送、不做对话(省回调 + AES + 5s ACK):无条件主动推(不挑活跃度、 无 24h 窗口),补 ClawBot 短板,定时简报必达首选。touser 经 OAuth 网页授权扫码拿成员 userid。 - core/wechat/wecom.py:access_token 2h 缓存(线程安全 + 失效重取)、OAuth getuserinfo、 message/send text/file、media/upload、state HMAC 签名 - WeComBinding 模型 + migration 0014(0013 被 task_channel 占);service 加 wecom CRUD + push_wecom + send_to_user 接 wecom 一路(scheduler deliver_notify 经它自动带上) - web/app.py 5 端点(/v1/wecom/oauth/url、callback 公开-身份从 state 验、bind GET/DELETE、test) - 前端 rail「微信」modal 加企业微信段(wechat.js + dev.html) 激活(管理员):建自建应用 → WECOM_CORPID/AGENTID/SECRET + 配「网页授权可信域名」; db upgrade head(带 0014)。redirect 主机取 ZCBOT_PUBLIC_BASE_URL 或请求 base。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| static | ||
| __init__.py | ||
| admin.py | ||
| app.py | ||
| auth.py | ||
| broker.py | ||
| pptx_render.py | ||
| sinks.py | ||
| static_files.py | ||