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