From 4f8d430575bf4c063776d63e338dab61fa04e2c6 Mon Sep 17 00:00:00 2001 From: YakumoChen Date: Sat, 10 Jan 2026 20:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=AD=E7=BD=91=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .fvmrc | 3 +++ .gitignore | 2 ++ .vscode/settings.json | 3 +++ lib/network/network_config.dart | 3 +++ 4 files changed, 11 insertions(+) create mode 100644 .fvmrc create mode 100644 .vscode/settings.json diff --git a/.fvmrc b/.fvmrc new file mode 100644 index 0000000..2bb4682 --- /dev/null +++ b/.fvmrc @@ -0,0 +1,3 @@ +{ + "flutter": "3.35.2" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2ea8576..e87fe79 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ doc/api/ /android/app/profile /android/app/release +# FVM Version Cache +.fvm/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..97f1308 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dart.flutterSdkPath": ".fvm/versions/3.35.2" +} \ No newline at end of file diff --git a/lib/network/network_config.dart b/lib/network/network_config.dart index 079b1a7..9cc2447 100644 --- a/lib/network/network_config.dart +++ b/lib/network/network_config.dart @@ -145,6 +145,9 @@ class ResponseInterceptor extends Interceptor { case DioExceptionType.cancel: errorMessage = '请求已取消'; break; + case DioExceptionType.connectionError: + errorMessage = '网络连接失败'; + break; default: errorMessage = err.message ?? '未知错误'; }