之前推送失败只回 error:RuntimeError,吞了企业微信的 errcode。改成 reason=str(e) (含 gettoken/message_send 失败的 errcode+errmsg);scripts/diag_wecom.py 分步查 gettoken vs send 的确切 errcode,服务器上直跑即可定位(可见范围/userid/凭据)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| crypto.py | ||
| ilink.py | ||
| inbound.py | ||
| service.py | ||
| wecom.py | ||