Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 10:19:37 +08:00
parent 6d599891dc
commit 1f77ee178e
3 changed files with 40 additions and 48 deletions

View File

@@ -136,11 +136,12 @@ class LiveHttp {
}
static Future liveRoomDanmaPrefetch({roomId}) async {
var res = await Request().get(Api.liveRoomDmPrefetch, queryParameters: {
'roomid': roomId,
});
var res = await Request().get(
Api.liveRoomDmPrefetch,
queryParameters: {'roomid': roomId},
);
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['data']['room']};
return {'status': true, 'data': res.data['data']?['room']};
} else {
return {'status': false, 'msg': res.data['message']};
}