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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user