From c34eeba859557bd3b723f31524bf04dd5ce59fa2 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Tue, 27 May 2025 11:39:24 +0800 Subject: [PATCH] fix get live dm token Signed-off-by: bggRGjQaUbCoE --- lib/http/live.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/http/live.dart b/lib/http/live.dart index 1d98d92d..130ac534 100644 --- a/lib/http/live.dart +++ b/lib/http/live.dart @@ -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 {