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 1/2] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=97=A0=E5=85=B4?= =?UTF-8?q?=E8=B6=A3=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 dd2d5374a..934991afe 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) From 82654a12d45a2c5f39e6a0c9207acc348da6b016 Mon Sep 17 00:00:00 2001 From: A0000Xz <122650088+A0000Xz@users.noreply.github.com> Date: Thu, 17 Jul 2025 20:16:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=97=A0=E5=85=B4?= =?UTF-8?q?=E8=B6=A3=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/willing/willing_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/willing/willing_manager.py b/src/chat/willing/willing_manager.py index 6c53273f5..31ea49399 100644 --- a/src/chat/willing/willing_manager.py +++ b/src/chat/willing/willing_manager.py @@ -104,7 +104,7 @@ class BaseWillingManager(ABC): is_mentioned_bot=message.get("is_mentioned", False), is_emoji=message.get("is_emoji", False), is_picid=message.get("is_picid", False), - interested_rate=message.get("interest_value", 0), + interested_rate = message.get("interest_value") or 0.0, ) def delete(self, message_id: str):