Compare commits

..

2 Commits

Author SHA1 Message Date
Junyan Qin
68c7de5199 chore: release v3.4.9.3 2025-02-24 23:01:10 +08:00
Junyan Qin
4dfb8597ae fix: #1124 2025-02-24 23:00:19 +08:00
3 changed files with 4 additions and 4 deletions

View File

@@ -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
}

View File

@@ -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"])

View File

@@ -1,4 +1,4 @@
semantic_version = "v3.4.9.2"
semantic_version = "v3.4.9.3"
debug_mode = False