mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
merge mine & media
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -175,7 +175,7 @@ class SearchHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState<PgcInfoModel>> pgcInfoNew({
|
||||
static Future<LoadingState<PgcInfoModel>> pgcInfo({
|
||||
int? seasonId,
|
||||
int? epId,
|
||||
}) async {
|
||||
@@ -207,27 +207,6 @@ class SearchHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<Map<String, dynamic>> pgcInfo({
|
||||
dynamic seasonId,
|
||||
dynamic epId,
|
||||
}) async {
|
||||
var res = await Request().get(
|
||||
Api.pgcInfo,
|
||||
queryParameters: {
|
||||
'season_id': ?seasonId,
|
||||
'ep_id': ?epId,
|
||||
},
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return {
|
||||
'status': true,
|
||||
'data': PgcInfoModel.fromJson(res.data['result']),
|
||||
};
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState<SearchTrendingData>> searchTrending({
|
||||
int limit = 30,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user