mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
@@ -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,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user