From 39ab15e1ac0a416500654a68cd61e81aedbc912a Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 18 Sep 2023 20:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E6=94=BE=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=8E=A5=E5=8F=A3=E7=A4=BC=E7=89=A9=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E6=98=AF=E5=8D=95=E4=BB=B7=E8=80=8C=E4=B8=8D=E6=98=AF?= =?UTF-8?q?=E6=80=BB=E4=BB=B7=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/src/api/chat/ChatClientDirectOpenLive.js | 2 +- services/chat.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blivedm b/blivedm index 4351881..4da2795 160000 --- a/blivedm +++ b/blivedm @@ -1 +1 @@ -Subproject commit 4351881f2e25374c2a3cfc6cf0c42d1fd23672cd +Subproject commit 4da27950c89d4c0bab70ba983ba25bae9f91c19c diff --git a/frontend/src/api/chat/ChatClientDirectOpenLive.js b/frontend/src/api/chat/ChatClientDirectOpenLive.js index dd722a3..b6bf53f 100644 --- a/frontend/src/api/chat/ChatClientDirectOpenLive.js +++ b/frontend/src/api/chat/ChatClientDirectOpenLive.js @@ -200,7 +200,7 @@ export default class ChatClientDirectOpenLive extends ChatClientOfficialBase { avatarUrl: chat.processAvatarUrl(data.uface), timestamp: data.timestamp, authorName: data.uname, - totalCoin: data.price, + totalCoin: data.price * data.gift_num, giftName: data.gift_name, num: data.gift_num } diff --git a/services/chat.py b/services/chat.py index 927d7cb..799c9e3 100644 --- a/services/chat.py +++ b/services/chat.py @@ -642,7 +642,7 @@ class LiveMsgHandler(blivedm.BaseHandler): 'avatarUrl': avatar_url, 'timestamp': message.timestamp, 'authorName': message.uname, - 'totalCoin': message.price, + 'totalCoin': message.price * message.gift_num, 'giftName': message.gift_name, 'num': message.gift_num })