mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
feat: pugv (#927)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -193,6 +193,24 @@ class SearchHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState<PgcInfoModel>> pugvInfo({
|
||||
dynamic seasonId,
|
||||
dynamic epId,
|
||||
}) async {
|
||||
var res = await Request().get(
|
||||
Api.pugvInfo,
|
||||
queryParameters: {
|
||||
'season_id': ?seasonId,
|
||||
'ep_id': ?epId,
|
||||
},
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return Success(PgcInfoModel.fromJson(res.data['data']));
|
||||
} else {
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState> episodeInfo({dynamic epId}) async {
|
||||
var res = await Request().get(
|
||||
Api.episodeInfo,
|
||||
|
||||
Reference in New Issue
Block a user