mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-15 05:33:59 +08:00
@@ -43,7 +43,7 @@ abstract final class LiveHttp {
|
||||
String replayDmid = '',
|
||||
}) async {
|
||||
String csrf = Accounts.main.csrf;
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.sendLiveMsg,
|
||||
queryParameters: await WbiSign.makSign({
|
||||
'web_location': 444.8,
|
||||
@@ -85,7 +85,7 @@ abstract final class LiveHttp {
|
||||
Object? qn,
|
||||
bool onlyAudio = false,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveRoomInfo,
|
||||
queryParameters: await WbiSign.makSign({
|
||||
'room_id': roomId,
|
||||
@@ -111,7 +111,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<RoomInfoH5Data>> liveRoomInfoH5({
|
||||
required Object roomId,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveRoomInfoH5,
|
||||
queryParameters: {
|
||||
'room_id': roomId,
|
||||
@@ -127,7 +127,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<List<DanmakuMsg>?>> liveRoomDmPrefetch({
|
||||
required Object roomId,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveRoomDmPrefetch,
|
||||
queryParameters: {'roomid': roomId},
|
||||
options: Options(
|
||||
@@ -155,7 +155,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<LiveDmInfoData>> liveRoomGetDanmakuToken({
|
||||
required Object roomId,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveRoomDmToken,
|
||||
queryParameters: await WbiSign.makSign({
|
||||
'id': roomId,
|
||||
@@ -172,7 +172,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<List<LiveEmoteDatum>?>> getLiveEmoticons({
|
||||
required int roomId,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.getLiveEmoticons,
|
||||
queryParameters: {
|
||||
'platform': 'pc',
|
||||
@@ -214,7 +214,7 @@ abstract final class LiveHttp {
|
||||
'statistics': Constants.statisticsApp,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveFeedIndex,
|
||||
queryParameters: params,
|
||||
options: Options(
|
||||
@@ -243,7 +243,7 @@ abstract final class LiveHttp {
|
||||
}
|
||||
|
||||
static Future<LoadingState<LiveFollowData>> liveFollow(int page) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveFollow,
|
||||
queryParameters: {
|
||||
'page': page,
|
||||
@@ -294,7 +294,7 @@ abstract final class LiveHttp {
|
||||
'statistics': Constants.statisticsApp,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveSecondList,
|
||||
queryParameters: params,
|
||||
options: Options(
|
||||
@@ -338,7 +338,7 @@ abstract final class LiveHttp {
|
||||
'statistics': Constants.statisticsApp,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveAreaList,
|
||||
queryParameters: params,
|
||||
);
|
||||
@@ -369,7 +369,7 @@ abstract final class LiveHttp {
|
||||
'statistics': Constants.statisticsApp,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.getLiveFavTag,
|
||||
queryParameters: params,
|
||||
);
|
||||
@@ -405,7 +405,7 @@ abstract final class LiveHttp {
|
||||
'statistics': Constants.statisticsApp,
|
||||
};
|
||||
AppSign.appSign(data);
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.setLiveFavTag,
|
||||
data: data,
|
||||
options: Options(contentType: Headers.formUrlEncodedContentType),
|
||||
@@ -439,7 +439,7 @@ abstract final class LiveHttp {
|
||||
'statistics': Constants.statisticsApp,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveRoomAreaList,
|
||||
queryParameters: params,
|
||||
);
|
||||
@@ -476,7 +476,7 @@ abstract final class LiveHttp {
|
||||
'type': type.name,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveSearch,
|
||||
queryParameters: params,
|
||||
);
|
||||
@@ -490,7 +490,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<ShieldInfo?>> getLiveInfoByUser(
|
||||
Object roomId,
|
||||
) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.getLiveInfoByUser,
|
||||
queryParameters: await WbiSign.makSign({
|
||||
'room_id': roomId,
|
||||
@@ -511,7 +511,7 @@ abstract final class LiveHttp {
|
||||
required int level,
|
||||
}) async {
|
||||
final csrf = Accounts.main.csrf;
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.liveSetSilent,
|
||||
data: {
|
||||
'type': type,
|
||||
@@ -532,7 +532,7 @@ abstract final class LiveHttp {
|
||||
required String keyword,
|
||||
}) async {
|
||||
final csrf = Accounts.main.csrf;
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.addShieldKeyword,
|
||||
data: {
|
||||
'keyword': keyword,
|
||||
@@ -552,7 +552,7 @@ abstract final class LiveHttp {
|
||||
required String keyword,
|
||||
}) async {
|
||||
final csrf = Accounts.main.csrf;
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.delShieldKeyword,
|
||||
data: {
|
||||
'keyword': keyword,
|
||||
@@ -574,7 +574,7 @@ abstract final class LiveHttp {
|
||||
required int type,
|
||||
}) async {
|
||||
final csrf = Accounts.main.csrf;
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.liveShieldUser,
|
||||
data: {
|
||||
'uid': uid,
|
||||
@@ -598,7 +598,7 @@ abstract final class LiveHttp {
|
||||
required Object uid,
|
||||
Object? anchorId,
|
||||
}) async {
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.liveLikeReport,
|
||||
data: await WbiSign.makSign({
|
||||
'click_time': clickTime,
|
||||
@@ -621,7 +621,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<SuperChatData>> superChatMsg(
|
||||
Object roomId,
|
||||
) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.superChatMsg,
|
||||
queryParameters: {
|
||||
'room_id': roomId,
|
||||
@@ -666,7 +666,7 @@ abstract final class LiveHttp {
|
||||
'csrf': csrf,
|
||||
'visit_id': '',
|
||||
};
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.liveDmReport,
|
||||
data: data,
|
||||
options: Options(contentType: Headers.formUrlEncodedContentType),
|
||||
@@ -684,7 +684,7 @@ abstract final class LiveHttp {
|
||||
required int page,
|
||||
required LiveContributionRankType type,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveContributionRank,
|
||||
queryParameters: await WbiSign.makSign({
|
||||
'ruid': ruid,
|
||||
@@ -718,7 +718,7 @@ abstract final class LiveHttp {
|
||||
required String token,
|
||||
}) async {
|
||||
final csrf = Accounts.main.csrf;
|
||||
final res = await Request().post(
|
||||
final res = await Request.post(
|
||||
Api.superChatReport,
|
||||
data: {
|
||||
'id': id,
|
||||
@@ -747,7 +747,7 @@ abstract final class LiveHttp {
|
||||
static Future<LoadingState<MedalWallData>> liveMedalWall({
|
||||
required Object mid,
|
||||
}) async {
|
||||
final res = await Request().get(
|
||||
final res = await Request.get(
|
||||
Api.liveMedalWall,
|
||||
queryParameters: {'target_id': mid},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user