fix del sc msg

This commit is contained in:
v1rg0z 2022-03-16 22:20:41 +08:00
parent b2d12e84bd
commit 86847c666f
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ class ChatHandler(tornado.websocket.WebSocketHandler): # noqa
sc_data['price'] = 100
sc_data['content'] = '敏捷的棕色狐狸跳过了懒狗'
self.send_cmd_data(Command.ADD_SUPER_CHAT, sc_data)
# self.send_message(Command.DEL_SUPER_CHAT, {'ids': [sc_data['id']]})
# self.send_cmd_data(Command.DEL_SUPER_CHAT, {'ids': [sc_data['id']]})
self.send_cmd_data(Command.ADD_GIFT, gift_data)
gift_data['id'] = uuid.uuid4().hex
gift_data['totalCoin'] = 1245000

View File

@ -422,7 +422,7 @@ class LiveMsgHandler(blivedm.BaseHandler):
if room is None:
return
room.send_cmd_data(api.chat.Command.ADD_SUPER_CHAT, {
room.send_cmd_data(api.chat.Command.DEL_SUPER_CHAT, {
'ids': list(map(str, message.ids))
})