feat: 视频搜索时长筛选v2

This commit is contained in:
guozhigq
2023-08-22 11:47:19 +08:00
parent 8703d9f576
commit 9e44995082
3 changed files with 107 additions and 34 deletions

View File

@ -47,17 +47,17 @@ class SearchHttp {
required String keyword,
required page,
String? order,
int? duration,
}) async {
Map<String, dynamic> reqData = {
var reqData = {
'search_type': searchType.type,
'keyword': keyword,
// 'order_sort': 0,
// 'user_type': 0,
'page': page,
if (order != null) 'order': order,
if (duration != null) 'duration': duration,
};
if (order != null && order != '') {
reqData['order'] = order;
}
var res = await Request().get(Api.searchByType, data: reqData);
if (res.data['code'] == 0 && res.data['data']['numPages'] > 0) {
Object data;