From 238de4ba8cefdb4c41ab71ecb13c10ed51e2b30d Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 11 May 2025 19:55:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=92=8C=E5=BE=AE=E4=BF=A1=E5=85=AC=E4=BC=97?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=B8=8B=E6=97=A0=E6=B3=95=E5=BA=94=E7=94=A8?= =?UTF-8?q?=20api=5Fbase=5Furl=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: #1505 --- astrbot/core/platform/sources/wecom/wecom_adapter.py | 2 +- .../sources/weixin_official_account/weixin_offacc_adapter.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/wecom/wecom_adapter.py b/astrbot/core/platform/sources/wecom/wecom_adapter.py index 587748b6c..528a8cab8 100644 --- a/astrbot/core/platform/sources/wecom/wecom_adapter.py +++ b/astrbot/core/platform/sources/wecom/wecom_adapter.py @@ -146,7 +146,7 @@ class WecomPlatformAdapter(Platform): self.client.kf = self.wechat_kf_api self.client.kf_message = self.wechat_kf_message_api - self.client.API_BASE_URL = self.api_base_url + self.client.API_BASE_URL = self.api_base_url async def callback(msg: BaseMessage): if msg.type == "unknown" and msg._data["Event"] == "kf_msg_or_event": diff --git a/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py b/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py index d7463d4d1..5ed589516 100644 --- a/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +++ b/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py @@ -136,6 +136,8 @@ class WeixinOfficialAccountPlatformAdapter(Platform): self.config["secret"].strip(), ) + self.client.API_BASE_URL = self.api_base_url + async def callback(msg): try: await self.convert_message(msg)