基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
deps: bump dio
Predidit2eefde98a545
diff --git a/lib/request/core/dio_factory.dart b/lib/request/core/dio_factory.dartindex 7deecdeb..98c2af66 100644--- a/lib/request/core/dio_factory.dart+++ b/lib/request/core/dio_factory.dart@@ -79,7 +79,6 @@ class DioFactory {),);dio.httpClientAdapter = config.createAdapter();- dio.transformer = BackgroundTransformer();dio.interceptors.addAll(interceptors);if (config.enableLog) {dio.interceptors.add(DioLoggerInterceptor());diff --git a/lib/request/core/network_error_mapper.dart b/lib/request/core/network_error_mapper.dartindex 8753fd8c..a26730f8 100644--- a/lib/request/core/network_error_mapper.dart+++ b/lib/request/core/network_error_mapper.dart@@ -58,6 +58,13 @@ class NetworkErrorMapper {rawError: error,stackTrace: error.stackTrace,);+ case DioExceptionType.transformTimeout:+ return NetworkException(+ type: NetworkExceptionType.parseError,+ message: '响应解析超时,请稍后重试!',+ rawError: error,+ stackTrace: error.stackTrace,+ );case DioExceptionType.unknown:final connection = await _connectionLabel();return NetworkException(diff --git a/pubspec.lock b/pubspec.lockindex ee2b2a9a..c25c05d6 100644--- a/pubspec.lock+++ b/pubspec.lock@@ -360,10 +360,10 @@ packages:dependency: "direct main"description:name: dio- sha256: aff32c08f92787a557dd5c0145ac91536481831a01b4648136373cddb0e64f8c+ sha256: "0df44ebba85e503958eb75d07eedd3c86275a58c1d3eda2f2ce8f0a2c3abbb3c"url: "https://pub.dev"source: hosted- version: "5.9.2"+ version: "5.11.0"dio_web_adapter:dependency: transitivedescription:diff --git a/pubspec.yaml b/pubspec.yamlindex 6c07acfb..14e7b63b 100644--- a/pubspec.yaml+++ b/pubspec.yaml@@ -40,7 +40,7 @@ dependencies:flutter_modular: ^7.1.0mobx: ^2.6.0flutter_mobx: ^2.3.0- dio: ^5.0.0+ dio: ^5.11.0cookie_jar: ^4.0.9crypto: ^3.0.6connectivity_plus: ^6.0.5