From 3366fbc4796ffb65f309509e864c27710ba1d4b4 Mon Sep 17 00:00:00 2001 From: A0000Xz <122650088+A0000Xz@users.noreply.github.com> Date: Thu, 17 Jul 2025 20:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=97=A0=E5=85=B4=E8=B6=A3?= =?UTF-8?q?=E5=BA=A6=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/focus_chat/heartFC_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/focus_chat/heartFC_chat.py b/src/chat/focus_chat/heartFC_chat.py index dd2d5374..934991af 100644 --- a/src/chat/focus_chat/heartFC_chat.py +++ b/src/chat/focus_chat/heartFC_chat.py @@ -462,7 +462,7 @@ class HeartFChatting: 在"兴趣"模式下,判断是否回复并生成内容。 """ - interested_rate = message_data.get("interest_value", 0.0) * self.willing_amplifier + interested_rate = (message_data.get("interest_value") or 0.0) * self.willing_amplifier self.willing_manager.setup(message_data, self.chat_stream)