Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:19:18 +08:00
parent b1432b5ff5
commit 148e0872b4
17 changed files with 126 additions and 127 deletions

View File

@@ -23,9 +23,9 @@ class PgcHttp {
Api.pgcIndexResult,
queryParameters: {
...params,
if (seasonType != null) 'season_type': seasonType,
if (type != null) 'type': type,
if (indexType != null) 'index_type': indexType,
'season_type': ?seasonType,
'type': ?type,
'index_type': ?indexType,
'page': page,
'pagesize': 21,
},
@@ -45,9 +45,9 @@ class PgcHttp {
var res = await Request().get(
Api.pgcIndexCondition,
queryParameters: {
if (seasonType != null) 'season_type': seasonType,
if (type != null) 'type': type,
if (indexType != null) 'index_type': indexType,
'season_type': ?seasonType,
'type': ?type,
'index_type': ?indexType,
},
);
if (res.data['code'] == 0) {
@@ -65,7 +65,7 @@ class PgcHttp {
Api.pgcIndex,
queryParameters: {
'page': page,
if (indexType != null) 'index_type': indexType,
'index_type': ?indexType,
},
);
if (res.data['code'] == 0) {
@@ -107,7 +107,7 @@ class PgcHttp {
'media_id': mediaId,
'ps': 20,
'sort': sort,
if (next != null) 'cursor': next,
'cursor': ?next,
'web_location': 666.19,
},
);