fix get live dm token

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-27 11:39:24 +08:00
parent d6914c42b3
commit c34eeba859

View File

@@ -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 {