From 0f8efcb4b0378aaa04e8ca072eda60941dab1e95 Mon Sep 17 00:00:00 2001 From: 6vision Date: Mon, 2 Dec 2024 21:16:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=83=8F=E8=AF=86=E5=88=AB=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/linkai/linkai.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/linkai/linkai.py b/plugins/linkai/linkai.py index 59eb0dc..b29d4df 100644 --- a/plugins/linkai/linkai.py +++ b/plugins/linkai/linkai.py @@ -201,12 +201,14 @@ class LinkAI(Plugin): group_name = context.get("msg").from_user_nickname app_code = self._fetch_group_app_code(group_name) if app_code: - remote_enabled = Util.fetch_app_plugin(app_code, "内容总结") + if context.type.name in ["FILE", "SHARING"]: + remote_enabled = Util.fetch_app_plugin(app_code, "内容总结") else: # 非群聊场景使用全局app_code app_code = conf().get("linkai_app_code") if app_code: - remote_enabled = Util.fetch_app_plugin(app_code, "内容总结") + if context.type.name in ["FILE", "SHARING"]: + remote_enabled = Util.fetch_app_plugin(app_code, "内容总结") # 基础条件:总开关开启且消息类型符合要求 base_enabled = (