mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 09:06:36 +08:00
fix get live dm token
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -147,9 +147,13 @@ class LiveHttp {
|
||||
}
|
||||
|
||||
static Future liveRoomGetDanmakuToken({roomId}) async {
|
||||
var res = await Request().get(Api.liveRoomDmToken, queryParameters: {
|
||||
'id': roomId,
|
||||
});
|
||||
var res = await Request().get(
|
||||
Api.liveRoomDmToken,
|
||||
queryParameters: await WbiSign.makSign({
|
||||
'id': roomId,
|
||||
'web_location': 444.8,
|
||||
}),
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return {'status': true, 'data': LiveDanmakuInfo.fromJson(res.data)};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user