From 84844ea6e8bb4287c2561f142dd03c9acc9ddde5 Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Sat, 1 Nov 2025 17:59:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=AD=98=E5=82=A8=E7=BC=BA=E5=A4=B1=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=AF=BC=E8=87=B4=E7=9A=84NOT=20NULL=E7=BA=A6?= =?UTF-8?q?=E6=9D=9F=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/message_receive/storage.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/chat/message_receive/storage.py b/src/chat/message_receive/storage.py index e82715e7b..20032eb03 100644 --- a/src/chat/message_receive/storage.py +++ b/src/chat/message_receive/storage.py @@ -179,6 +179,12 @@ class MessageStorageBatcher: is_picid = message.is_picid or False is_notify = message.is_notify or False is_command = message.is_command or False + is_public_notice = message.is_public_notice or False + notice_type = message.notice_type + actions = message.actions + should_reply = message.should_reply + should_act = message.should_act + additional_config = message.additional_config key_words = "" key_words_lite = "" memorized_times = 0 @@ -226,6 +232,12 @@ class MessageStorageBatcher: is_picid = False is_notify = False is_command = False + is_public_notice = False + notice_type = None + actions = None + should_reply = None + should_act = None + additional_config = None key_words = "" key_words_lite = "" else: @@ -239,6 +251,12 @@ class MessageStorageBatcher: is_picid = message.is_picid is_notify = message.is_notify is_command = message.is_command + is_public_notice = getattr(message, 'is_public_notice', False) + notice_type = getattr(message, 'notice_type', None) + actions = getattr(message, 'actions', None) + should_reply = getattr(message, 'should_reply', None) + should_act = getattr(message, 'should_act', None) + additional_config = getattr(message, 'additional_config', None) key_words = MessageStorage._serialize_keywords(message.key_words) key_words_lite = MessageStorage._serialize_keywords(message.key_words_lite) @@ -300,10 +318,16 @@ class MessageStorageBatcher: interest_value=interest_value, priority_mode=priority_mode, priority_info=priority_info_json, + additional_config=additional_config, is_emoji=is_emoji, is_picid=is_picid, is_notify=is_notify, is_command=is_command, + is_public_notice=is_public_notice, + notice_type=notice_type, + actions=actions, + should_reply=should_reply, + should_act=should_act, key_words=key_words, key_words_lite=key_words_lite, )