mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 00:28:38 +00:00
@@ -30,13 +30,12 @@ class PgcIndexController
|
||||
type: 0,
|
||||
indexType: indexType,
|
||||
);
|
||||
if (res.isSuccess) {
|
||||
PgcIndexConditionData data = res.data;
|
||||
if (data.order?.isNotEmpty == true) {
|
||||
indexParams['order'] = data.order!.first.field;
|
||||
if (res case Success(:final response)) {
|
||||
if (response.order?.isNotEmpty == true) {
|
||||
indexParams['order'] = response.order!.first.field;
|
||||
}
|
||||
if (data.filter?.isNotEmpty == true) {
|
||||
for (PgcConditionFilter item in data.filter!) {
|
||||
if (response.filter?.isNotEmpty == true) {
|
||||
for (PgcConditionFilter item in response.filter!) {
|
||||
indexParams['${item.field}'] = item.values?.firstOrNull?.keyword;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user