mirror of
https://github.com/xfgryujk/blivechat.git
synced 2026-08-19 09:43:28 +08:00
修复web接口会显示两次上舰消息的问题
This commit is contained in:
2
blivedm
2
blivedm
Submodule blivedm updated: 8f6179ee17...8bf5055fcb
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "blivechat",
|
||||
"version": "1.10.1",
|
||||
"version": "1.10.2-beta",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user