From ce4e4fb8dd7581131e210fccf41791f24ba8e64f Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Fri, 26 Sep 2025 10:59:11 +0800 Subject: [PATCH] fix: add missing id field --- astrbot/core/platform/sources/wecom/wecom_adapter.py | 1 + .../sources/weixin_official_account/weixin_offacc_adapter.py | 1 + 2 files changed, 2 insertions(+) diff --git a/astrbot/core/platform/sources/wecom/wecom_adapter.py b/astrbot/core/platform/sources/wecom/wecom_adapter.py index e229038d7..50341a8ae 100644 --- a/astrbot/core/platform/sources/wecom/wecom_adapter.py +++ b/astrbot/core/platform/sources/wecom/wecom_adapter.py @@ -185,6 +185,7 @@ class WecomPlatformAdapter(Platform): return PlatformMetadata( "wecom", "wecom 适配器", + id=self.config.get("id", "wecom"), ) @override 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 9ea1e5332..b920a488d 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 @@ -184,6 +184,7 @@ class WeixinOfficialAccountPlatformAdapter(Platform): return PlatformMetadata( "weixin_official_account", "微信公众平台 适配器", + id=self.config.get("id","weixin_official_account"), ) @override