mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-04 16:20:14 +08:00
@@ -238,21 +238,23 @@ class AccountManager extends Interceptor {
|
|||||||
|
|
||||||
static Future<String> dioError(DioException error) async {
|
static Future<String> dioError(DioException error) async {
|
||||||
switch (error.type) {
|
switch (error.type) {
|
||||||
case DioExceptionType.badCertificate:
|
case .badCertificate:
|
||||||
return '证书有误!';
|
return '证书有误!';
|
||||||
case DioExceptionType.badResponse:
|
case .badResponse:
|
||||||
return '服务器异常,请稍后重试!';
|
return '服务器异常,请稍后重试!';
|
||||||
case DioExceptionType.cancel:
|
case .cancel:
|
||||||
return '请求已被取消,请重新请求';
|
return '请求已被取消,请重新请求';
|
||||||
case DioExceptionType.connectionError:
|
case .connectionError:
|
||||||
return '连接错误,请检查网络设置';
|
return '连接错误,请检查网络设置';
|
||||||
case DioExceptionType.connectionTimeout:
|
case .connectionTimeout:
|
||||||
return '网络连接超时,请检查网络设置';
|
return '网络连接超时,请检查网络设置';
|
||||||
case DioExceptionType.receiveTimeout:
|
case .receiveTimeout:
|
||||||
return '响应超时,请稍后重试!';
|
return '响应超时,请稍后重试!';
|
||||||
case DioExceptionType.sendTimeout:
|
case .sendTimeout:
|
||||||
return '发送请求超时,请检查网络设置';
|
return '发送请求超时,请检查网络设置';
|
||||||
case DioExceptionType.unknown:
|
case .transformTimeout:
|
||||||
|
return '转换响应数据超时!';
|
||||||
|
case .unknown:
|
||||||
String desc;
|
String desc;
|
||||||
try {
|
try {
|
||||||
desc = PlatformUtils.isMobile
|
desc = PlatformUtils.isMobile
|
||||||
|
|||||||
22
pubspec.lock
22
pubspec.lock
@@ -118,10 +118,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: audio_session
|
name: audio_session
|
||||||
sha256: "7217b229db57cc4dc577a8abb56b7429a5a212b978517a5be578704bfe5e568b"
|
sha256: f9e7711a0e24ca8b40f5d7ac374c3c6e55016f3157912badd18199cdbbca5c4d
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.3"
|
version: "0.2.4"
|
||||||
battery_plus:
|
battery_plus:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -339,10 +339,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: cross_file
|
name: cross_file
|
||||||
sha256: "28bb3ae56f117b5aec029d702a90f57d285cd975c3c5c281eaca38dbc47c5937"
|
sha256: d687bec93342bf6a764a116d15c8694ebeff10e633dc28a39dd3144f7195024e
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.5+2"
|
version: "0.3.5+3"
|
||||||
crypto:
|
crypto:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -404,10 +404,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: dio
|
name: dio
|
||||||
sha256: aff32c08f92787a557dd5c0145ac91536481831a01b4648136373cddb0e64f8c
|
sha256: ea2bad3c89a27635ce2d85cce4d6b199da49a5a48ec77b03e45b65a3b90922b0
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.9.2"
|
version: "5.10.0"
|
||||||
dio_http2_adapter:
|
dio_http2_adapter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -420,10 +420,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: dio_web_adapter
|
name: dio_web_adapter
|
||||||
sha256: "2f9e64323a7c3c7ef69567d5c800424a11f8337b8b228bad02524c9fb3c1f340"
|
sha256: dd58dc3861eb36edb13b217efc006a1c21e5bbc341de8c229b85634fa5e362e4
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.2"
|
version: "2.2.0"
|
||||||
dlna_dart:
|
dlna_dart:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -888,10 +888,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: image_picker
|
name: image_picker
|
||||||
sha256: "91c025426c2881c551100bce834e201c835a170151545f58d17da5180ca7d9ac"
|
sha256: d8402284df184bc05f4a2210c6c23983b0720f4cd87cbd05c5390a78af602667
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.2"
|
version: "1.2.3"
|
||||||
image_picker_android:
|
image_picker_android:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -993,7 +993,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "pkgs/jnigen"
|
path: "pkgs/jnigen"
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: "170d0550b6d906aa09bb10910774c43a0ddf46c0"
|
resolved-ref: c8b26f45853eb518a5191d2fc47e70d7f23e690c
|
||||||
url: "https://github.com/dart-lang/native.git"
|
url: "https://github.com/dart-lang/native.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.17.0-wip"
|
version: "0.17.0-wip"
|
||||||
|
|||||||
Reference in New Issue
Block a user