fix(chat): 修复获取用户ID时使用了错误的键名
将 `action_message.get("user_id", "")` 修改为 `action_message.get("chat_info_user_id", "")`,以确保从 `action_message` 字典中正确获取用户ID。
chore: 更新 .gitignore 文件
添加 `src/chat/planner_actions/新建 文本文档.txt` 到忽略列表,以避免将临时文件提交到版本库。
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -341,3 +341,4 @@ rust_video/Cargo.lock
|
||||
.claude/settings.local.json
|
||||
package-lock.json
|
||||
package.json
|
||||
src/chat/planner_actions/新建 文本文档.txt
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user