fix: 企微 API 通过代理绕过 IP 白名单限制,补充错误日志

- 新增 WECHAT_API_BASE_URL 配置项,支持企微 API 代理转发
- _send_message 增加 API 错误日志(errcode + errmsg)
- _get_access_token 增加失败日志
- handle_text 不再为空,返回菜单引导提示
- 防重入触发时通知用户等待时间
- menu.py API 调用统一使用配置化的 base URL

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-12 08:43:03 +08:00
parent 103de16a8f
commit 18f415b363
5 changed files with 37 additions and 6 deletions
+1
View File
@@ -29,6 +29,7 @@ class Settings(BaseSettings):
wechat_encoding_aes_key: str = ""
wechat_port: int = 18001
wechat_host: str = "0.0.0.0"
wechat_api_base_url: str = "https://qyapi.weixin.qq.com"
# 定时任务
scheduler_enabled: bool = True