mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-20 02:44:19 +08:00
Update
This commit is contained in:
@@ -23,7 +23,7 @@ class ApiResult<T> {
|
||||
if (ok) {
|
||||
return data!;
|
||||
} else {
|
||||
return throw (status, error!);
|
||||
return throw (status, error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -321,6 +321,10 @@ class EHApi extends __EHApi {
|
||||
return _getTags(ids.join(","), cancel: cancel);
|
||||
}
|
||||
|
||||
Future<ApiResult<Tags>> getTags2(List<String> ids, {CancelToken? cancel}) {
|
||||
return _getTags(ids.join(","), cancel: cancel);
|
||||
}
|
||||
|
||||
String getFileUrl(int id) {
|
||||
final uri = Uri.parse(_combineBaseUrls(_dio.options.baseUrl, baseUrl));
|
||||
final newUri = uri.resolve("file/$id");
|
||||
|
||||
Reference in New Issue
Block a user