|
@@ -113,7 +113,7 @@ class CustomInterceptors extends Interceptor {
|
|
|
|
|
|
err.error = AppException(message: "当前网络不可用,请检查您的网络");
|
|
|
return handler.next(err);
|
|
|
- } else if (err.error is SocketException || err.type == DioErrorType.connectTimeout || err.type == DioErrorType.sendTimeout || err.type == DioErrorType.receiveTimeout) {
|
|
|
+ } else if (err.error is SocketException || err.type == DioErrorType.other || err.type == DioErrorType.connectTimeout || err.type == DioErrorType.sendTimeout || err.type == DioErrorType.receiveTimeout) {
|
|
|
LogHelper().d("错误类型:==== ${err.type}");
|
|
|
if (_retryCount < _backupUrls.length) {
|
|
|
|