|
|
@ -68,7 +68,6 @@ abstract class ApiService { |
|
|
|
debugPrint("headers = ${options.headers}"); |
|
|
|
debugPrint("headers = ${options.headers}"); |
|
|
|
if (showLoading && !EasyLoading.isShow) { |
|
|
|
if (showLoading && !EasyLoading.isShow) { |
|
|
|
//是否显示loading |
|
|
|
//是否显示loading |
|
|
|
// SmartDialog.showLoading(msg: S.current.zhengzaijiazai); |
|
|
|
|
|
|
|
EasyLoading.show(status: S.of(context).zhengzaijiazai); |
|
|
|
EasyLoading.show(status: S.of(context).zhengzaijiazai); |
|
|
|
} |
|
|
|
} |
|
|
|
if (options.data is FormData) { |
|
|
|
if (options.data is FormData) { |
|
|
@ -79,8 +78,6 @@ abstract class ApiService { |
|
|
|
debugPrint("params queryParameters = ${options.queryParameters}"); |
|
|
|
debugPrint("params queryParameters = ${options.queryParameters}"); |
|
|
|
}, onResponse: (Response response) { |
|
|
|
}, onResponse: (Response response) { |
|
|
|
if (showLoading && EasyLoading.isShow) { |
|
|
|
if (showLoading && EasyLoading.isShow) { |
|
|
|
|
|
|
|
|
|
|
|
// SmartDialog.dismiss(); |
|
|
|
|
|
|
|
EasyLoading.dismiss(); |
|
|
|
EasyLoading.dismiss(); |
|
|
|
} |
|
|
|
} |
|
|
|
debugPrint("\n====================== 响应数据开始 ====================="); |
|
|
|
debugPrint("\n====================== 响应数据开始 ====================="); |
|
|
@ -111,7 +108,6 @@ abstract class ApiService { |
|
|
|
} |
|
|
|
} |
|
|
|
debugPrint("======================= 响应数据结束 =======================\n"); |
|
|
|
debugPrint("======================= 响应数据结束 =======================\n"); |
|
|
|
}, onError: (DioError e) { |
|
|
|
}, onError: (DioError e) { |
|
|
|
// SmartDialog.dismiss(); |
|
|
|
|
|
|
|
if (EasyLoading.isShow) { |
|
|
|
if (EasyLoading.isShow) { |
|
|
|
EasyLoading.dismiss(); |
|
|
|
EasyLoading.dismiss(); |
|
|
|
} |
|
|
|
} |
|
|
|