总算能回复了😭😭😭
This commit is contained in:
@@ -130,7 +130,7 @@ class ResponseHandler:
|
|||||||
"""
|
"""
|
||||||
current_time = time.time()
|
current_time = time.time()
|
||||||
# 计算新消息数量
|
# 计算新消息数量
|
||||||
new_message_count = message_api.count_new_messages(
|
new_message_count = await message_api.count_new_messages(
|
||||||
chat_id=self.context.stream_id, start_time=thinking_start_time, end_time=current_time
|
chat_id=self.context.stream_id, start_time=thinking_start_time, end_time=current_time
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1361,7 +1361,7 @@ class DefaultReplyer:
|
|||||||
|
|
||||||
# 获取用户ID
|
# 获取用户ID
|
||||||
person_info_manager = get_person_info_manager()
|
person_info_manager = get_person_info_manager()
|
||||||
person_id = person_info_manager.get_person_id_by_person_name(sender)
|
person_id = await person_info_manager.get_person_id_by_person_name(sender)
|
||||||
if not person_id:
|
if not person_id:
|
||||||
logger.warning(f"未找到用户 {sender} 的ID,跳过信息提取")
|
logger.warning(f"未找到用户 {sender} 的ID,跳过信息提取")
|
||||||
return f"你完全不认识{sender},不理解ta的相关信息。"
|
return f"你完全不认识{sender},不理解ta的相关信息。"
|
||||||
|
|||||||
@@ -110,7 +110,11 @@ class RelationshipFetcher:
|
|||||||
if person_name == nickname_str and not short_impression:
|
if person_name == nickname_str and not short_impression:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
current_points = person_info.get("points") or []
|
current_points = person_info.get("points")
|
||||||
|
if isinstance(current_points, str):
|
||||||
|
current_points = orjson.loads(current_points)
|
||||||
|
else:
|
||||||
|
current_points = current_points or []
|
||||||
|
|
||||||
# 按时间排序forgotten_points
|
# 按时间排序forgotten_points
|
||||||
current_points.sort(key=lambda x: x[2])
|
current_points.sort(key=lambda x: x[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user