mod: 代码整理

This commit is contained in:
guozhigq
2023-07-25 23:44:09 +08:00
parent 6d9f66c420
commit 7745ea076b
74 changed files with 387 additions and 424 deletions

View File

@ -151,7 +151,7 @@ class Request {
cancelToken: cancelToken,
);
return response;
} on DioError catch (e) {
} on DioException catch (e) {
print('get error: $e');
return Future.error(await ApiInterceptor.dioError(e));
}
@ -173,7 +173,7 @@ class Request {
);
print('post success: ${response.data}');
return response;
} on DioError catch (e) {
} on DioException catch (e) {
print('post error: $e');
return Future.error(await ApiInterceptor.dioError(e));
}
@ -193,7 +193,7 @@ class Request {
print('downloadFile success: ${response.data}');
return response.data;
} on DioError catch (e) {
} on DioException catch (e) {
print('downloadFile error: $e');
return Future.error(ApiInterceptor.dioError(e));
}