mcy_new #1
|
|
@ -136,9 +136,6 @@ class TheError extends Interceptor {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onError(DioException error, ErrorInterceptorHandler handler) {
|
void onError(DioException error, ErrorInterceptorHandler handler) {
|
||||||
print('----------------');
|
|
||||||
print(error);
|
|
||||||
print('*************');
|
|
||||||
var message = '请求错误,请重试';
|
var message = '请求错误,请重试';
|
||||||
switch (error.type) {
|
switch (error.type) {
|
||||||
case DioExceptionType.connectionTimeout:
|
case DioExceptionType.connectionTimeout:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue