From 614d2f43d67648d5f7763240f16bcf4581a8248a Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Sun, 29 Mar 2026 15:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E8=81=8A=E4=B9=9F=E8=B5=B0maisaka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/message_receive/bot.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/chat/message_receive/bot.py b/src/chat/message_receive/bot.py index dc704e44..912abb18 100644 --- a/src/chat/message_receive/bot.py +++ b/src/chat/message_receive/bot.py @@ -303,7 +303,7 @@ class ChatBot: # pass # 处理消息内容,识别表情包等二进制数据并转化为文本描述 - if group_info is not None and global_config.maisaka.direct_image_input: + if global_config.maisaka.direct_image_input: message.maisaka_original_raw_message = deepcopy(message.raw_message) # type: ignore[attr-defined] # 入站主链优先保证消息尽快入队,避免图片、表情包、语音分析阻塞适配器超时。 await message.process( @@ -388,12 +388,10 @@ class ChatBot: # await preprocess() async def preprocess(): if group_info is None: - # logger.debug("[私聊]检测到私聊消息,路由到PFC系统") - # MessageUtils.store_message_to_db(message) # 存储消息到数据库 - # await self._create_pfc_chat(message) - logger.critical("暂时禁用私聊") + logger.debug("[私聊]检测到私聊消息,路由到 Maisaka") + await self.heartflow_message_receiver.process_message(message) else: - logger.debug("[群聊]检测到群聊消息,路由到HeartFlow系统") + logger.debug("[群聊]检测到群聊消息,路由到 Maisaka") await self.heartflow_message_receiver.process_message(message) await preprocess()