diff --git a/app/task.py b/app/task.py index 415d049..1bc5aac 100644 --- a/app/task.py +++ b/app/task.py @@ -41,7 +41,7 @@ def process_message_callback( mentions_data = message_data.get("mentions") - if "官方应用指令" not in [mention.get("name") for mention in mentions_data]: + if "官方应用指令" not in [mention.get("name") for mention in mentions_data]: # 忽略@官方应用指令的消息 lark.logger.info("忽略非@官方应用的消息") return @@ -77,7 +77,7 @@ def process_message_callback( record["问题概述"] = content_text record["创建人"] = [{"id": sender_id}] - history_message_data = get_messages(client, message_id, images, cache_dir) + history_message_data = get_messages(client, "thread", thread_id, cache_dir) lark.logger.info(f"history_message_data: {history_message_data}") for image in images: