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)