Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -30,22 +30,28 @@ class SearchAllData extends SearchNumData {
switch (item['result_type']) {
case 'media_bangumi' || 'media_bangumi':
if (isRefresh) {
list!.add((item['data'] as List)
.map((e) => SearchPgcItemModel.fromJson(e))
.toList());
list!.add(
(item['data'] as List)
.map((e) => SearchPgcItemModel.fromJson(e))
.toList(),
);
}
break;
case 'bili_user':
if (isRefresh) {
list!.addAll((item['data'] as List)
.map((e) => SearchUserItemModel.fromJson(e))
.toList());
list!.addAll(
(item['data'] as List)
.map((e) => SearchUserItemModel.fromJson(e))
.toList(),
);
}
break;
case 'video':
list!.addAll((item['data'] as List)
.map((e) => SearchVideoItemModel.fromJson(e))
.toList());
list!.addAll(
(item['data'] as List)
.map((e) => SearchVideoItemModel.fromJson(e))
.toList(),
);
break;
}
}