From 0cc0090869cb35640d4514bfd6026dd29fe7f09c Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 30 Nov 2025 17:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dweb=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BC=9A=E6=98=BE=E7=A4=BA=E4=B8=A4=E6=AC=A1=E4=B8=8A=E8=88=B0?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blivedm | 2 +- frontend/package.json | 2 +- frontend/src/api/chat/ChatClientDirectWeb.js | 5 +++++ services/chat.py | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/blivedm b/blivedm index 8f6179e..8bf5055 160000 --- a/blivedm +++ b/blivedm @@ -1 +1 @@ -Subproject commit 8f6179ee176394084c6ecea1cfcb806582ec8cae +Subproject commit 8bf5055fcb38668208fb0c75a4e0d75f2802ecea diff --git a/frontend/package.json b/frontend/package.json index 67c69bf..0bedba5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "blivechat", - "version": "1.10.1", + "version": "1.10.2-beta", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/frontend/src/api/chat/ChatClientDirectWeb.js b/frontend/src/api/chat/ChatClientDirectWeb.js index daf7be8..2555bdc 100644 --- a/frontend/src/api/chat/ChatClientDirectWeb.js +++ b/frontend/src/api/chat/ChatClientDirectWeb.js @@ -173,6 +173,11 @@ export default class ChatClientDirectWeb extends ChatClientOfficialBase { async userToastV2Callback(command) { let data = command.data + // 官方的评论栏不会显示2的消息 + if (data.option.source == 2) { + return + } + let { sender_uinfo: { uid, diff --git a/services/chat.py b/services/chat.py index 1fd9d91..84840d5 100644 --- a/services/chat.py +++ b/services/chat.py @@ -612,6 +612,9 @@ class LiveMsgHandler(blivedm.BaseHandler): ) def _on_user_toast_v2(self, client: WebLiveClient, message: dm_web_models.UserToastV2Message): + # 官方的评论栏不会显示2的消息 + if message.source == 2: + return utils.async_io.create_task_with_ref(self.__on_buy_guard(client, message)) @staticmethod