From acd2cfabafa1619e631fd5a392109f85898e40fe Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Wed, 24 Sep 2025 18:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=80=E6=8E=89=E4=B8=80=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/built_in/affinity_flow_chatter/plan_filter.py | 2 -- .../built_in/napcat_adapter_plugin/src/send_handler.py | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/plugins/built_in/affinity_flow_chatter/plan_filter.py b/src/plugins/built_in/affinity_flow_chatter/plan_filter.py index 01fb3f78e..abe5518ea 100644 --- a/src/plugins/built_in/affinity_flow_chatter/plan_filter.py +++ b/src/plugins/built_in/affinity_flow_chatter/plan_filter.py @@ -471,8 +471,6 @@ class ChatterPlanFilter: # 确保 action_message 中始终有 message_id 字段 if "message_id" not in target_message_obj and "id" in target_message_obj: target_message_obj["message_id"] = target_message_obj["id"] - - logger.info(f"[_parse_single_action] target_message_obj: {target_message_obj}") else: # 如果找不到目标消息,对于reply动作来说这是必需的,应该记录警告 if action == "reply": diff --git a/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py b/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py index 6494e9464..ec4fbe75e 100644 --- a/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py +++ b/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py @@ -71,7 +71,6 @@ class SendHandler: action: Optional[str] = None id_name: Optional[str] = None processed_message: list = [] - logger.info(message_info,message_segment) try: if user_info: processed_message = await self.handle_seg_recursive(message_segment, user_info) @@ -97,7 +96,7 @@ class SendHandler: logger.error("无法识别的消息类型") return None logger.info("尝试发送到napcat") - logger.info(f"准备发送到napcat的消息体: action='{action}', {id_name}='{target_id}', message='{processed_message}'") + logger.debug(f"准备发送到napcat的消息体: action='{action}', {id_name}='{target_id}', message='{processed_message}'") response = await self.send_message_to_napcat( action, { @@ -298,7 +297,7 @@ class SendHandler: async def handle_reply_message(self, id: str, user_info: UserInfo) -> dict | list: """处理回复消息""" - logger.info(f"开始处理回复消息,消息ID: {id}") + logger.debug(f"开始处理回复消息,消息ID: {id}") reply_seg = {"type": "reply", "data": {"id": id}} # 检查是否启用引用艾特功能 @@ -308,7 +307,7 @@ class SendHandler: try: msg_info_response = await self.send_message_to_napcat("get_msg", {"message_id": id}) - logger.info(f"获取消息 {id} 的详情响应: {msg_info_response}") + logger.debug(f"获取消息 {id} 的详情响应: {msg_info_response}") replied_user_id = None if msg_info_response and msg_info_response.get("status") == "ok":