From 79db828a015a3a6fd4dbdd5f39d0ec4599c51106 Mon Sep 17 00:00:00 2001 From: xiewoc <70128845+xiewoc@users.noreply.github.com> Date: Sat, 8 Mar 2025 12:30:49 +0800 Subject: [PATCH 1/2] Update aiocqhttp_platform_adapter.py --- .../platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py index 525869980..0a2e8d430 100644 --- a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +++ b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py @@ -140,7 +140,7 @@ class AiocqhttpAdapter(Platform): abm.type = MessageType.FRIEND_MESSAGE if self.unique_session and abm.type == MessageType.GROUP_MESSAGE: abm.session_id = ( - abm.sender.user_id + "_" + str(event.group_id) + str(abm.sender.user_id) + "_" + str(event.group_id) ) # 也保留群组 id else: abm.session_id = ( From d6a785b645868a0176a8d0f5cb2a613d77975de2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 8 Mar 2025 04:33:18 +0000 Subject: [PATCH 2/2] :balloon: auto fixes by pre-commit hooks --- astrbot/core/star/star_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrbot/core/star/star_manager.py b/astrbot/core/star/star_manager.py index be476f33f..750186959 100644 --- a/astrbot/core/star/star_manager.py +++ b/astrbot/core/star/star_manager.py @@ -308,7 +308,9 @@ class PluginManager: context=self.context ) else: - metadata.star_cls = metadata.star_cls_type(context=self.context) + metadata.star_cls = metadata.star_cls_type( + context=self.context + ) else: logger.info(f"插件 {metadata.name} 已被禁用。")