From 862f0df15ff637350234012ed7189bd0ebb06c6b Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Sat, 13 Sep 2025 21:10:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E4=BF=AE=E5=A4=8D=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7ID=E6=97=B6=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BA=86=E9=94=99=E8=AF=AF=E7=9A=84=E9=94=AE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 `action_message.get("user_id", "")` 修改为 `action_message.get("chat_info_user_id", "")`,以确保从 `action_message` 字典中正确获取用户ID。 chore: 更新 .gitignore 文件 添加 `src/chat/planner_actions/新建 文本文档.txt` 到忽略列表,以避免将临时文件提交到版本库。 --- .gitignore | 1 + src/chat/chat_loop/cycle_processor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f03fa1b26..b63572ab4 100644 --- a/.gitignore +++ b/.gitignore @@ -341,3 +341,4 @@ rust_video/Cargo.lock .claude/settings.local.json package-lock.json package.json +src/chat/planner_actions/新建 文本文档.txt diff --git a/src/chat/chat_loop/cycle_processor.py b/src/chat/chat_loop/cycle_processor.py index 2e290ae9d..06f1b6a36 100644 --- a/src/chat/chat_loop/cycle_processor.py +++ b/src/chat/chat_loop/cycle_processor.py @@ -84,7 +84,7 @@ class CycleProcessor: # 获取用户信息并生成回复提示 person_id = person_info_manager.get_person_id( platform, - action_message.get("user_id", ""), + action_message.get("chat_info_user_id", ""), ) person_name = await person_info_manager.get_value(person_id, "person_name") action_prompt_display = f"你对{person_name}进行了回复:{reply_text}"