mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-01-13 22:00:15 +08:00
修复开放平台接口礼物显示的是单价而不是总价的问题
This commit is contained in:
parent
49fe186dc4
commit
39ab15e1ac
2
blivedm
2
blivedm
@ -1 +1 @@
|
||||
Subproject commit 4351881f2e25374c2a3cfc6cf0c42d1fd23672cd
|
||||
Subproject commit 4da27950c89d4c0bab70ba983ba25bae9f91c19c
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user