From 33b75d46f816899fd00331806d3d1a9a0a58171d Mon Sep 17 00:00:00 2001 From: "Mr.Xia" <1424473282@qq.com> Date: Tue, 7 Apr 2026 20:35:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E4=BF=AE=E5=A4=8D=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8D=E5=8C=B9=E9=85=8D=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将返回的消息ID从字符串类型改为包含message_id键的字典,以匹配实际接口的返回格式。 --- danding_bot/plugins/group_horse_racing/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/danding_bot/plugins/group_horse_racing/test_commands.py b/danding_bot/plugins/group_horse_racing/test_commands.py index fd20c9d..1a79eb8 100644 --- a/danding_bot/plugins/group_horse_racing/test_commands.py +++ b/danding_bot/plugins/group_horse_racing/test_commands.py @@ -144,9 +144,9 @@ class _FakeBot: async def send_msg(self, **kwargs): self.messages.append(dict(kwargs)) - message_id = str(self._next_message_id) + message_id = self._next_message_id self._next_message_id += 1 - return message_id + return {"message_id": message_id} class _InMemoryRoomStore: