Merge pull request #2408 from 6vision/fix-summary-image

图像识别逻辑优化
This commit is contained in:
zhayujie
2024-12-02 21:53:52 +08:00
committed by GitHub

View File

@@ -201,11 +201,13 @@ class LinkAI(Plugin):
group_name = context.get("msg").from_user_nickname
app_code = self._fetch_group_app_code(group_name)
if 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:
if context.type.name in ["FILE", "SHARING"]:
remote_enabled = Util.fetch_app_plugin(app_code, "内容总结")
# 基础条件:总开关开启且消息类型符合要求