From 4dfb8597aed1405e06577fbbee0a79a16f86f180 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 24 Feb 2025 23:00:19 +0800 Subject: [PATCH 1/2] fix: #1124 --- pkg/platform/manager.py | 4 ++-- pkg/platform/sources/gewechat.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/platform/manager.py b/pkg/platform/manager.py index 3b1e27ae..aa0303b9 100644 --- a/pkg/platform/manager.py +++ b/pkg/platform/manager.py @@ -110,7 +110,7 @@ class PlatformManager: if len(self.adapters) == 0: self.ap.logger.warning('未运行平台适配器,请根据文档配置并启用平台适配器。') - async def write_back_config(self, adapter_inst: msadapter.MessagePlatformAdapter, config: dict): + async def write_back_config(self, adapter_name: str, adapter_inst: msadapter.MessagePlatformAdapter, config: dict): index = -2 for i, adapter in enumerate(self.adapters): @@ -132,7 +132,7 @@ class PlatformManager: break new_cfg = { - 'adapter': adapter_inst.name, + 'adapter': adapter_name, 'enable': True, **config } diff --git a/pkg/platform/sources/gewechat.py b/pkg/platform/sources/gewechat.py index 9d3921fc..5ff5a467 100644 --- a/pkg/platform/sources/gewechat.py +++ b/pkg/platform/sources/gewechat.py @@ -257,7 +257,7 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter): self.ap.logger.info(f"Gewechat 登录成功,app_id: {app_id}") - await self.ap.platform_mgr.write_back_config(self, self.config) + await self.ap.platform_mgr.write_back_config('gewechat', self, self.config) # 获取 nickname profile = self.bot.get_profile(self.config["app_id"]) From 68c7de5199f341dcdf6e70fd0724797a6b9a1931 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 24 Feb 2025 23:01:10 +0800 Subject: [PATCH 2/2] chore: release v3.4.9.3 --- pkg/utils/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/constants.py b/pkg/utils/constants.py index e2e660d2..beb59521 100644 --- a/pkg/utils/constants.py +++ b/pkg/utils/constants.py @@ -1,4 +1,4 @@ -semantic_version = "v3.4.9.2" +semantic_version = "v3.4.9.3" debug_mode = False