From 7f077cf5136dd7a8d3d97ec69d2f80edb784c459 Mon Sep 17 00:00:00 2001 From: wangliankun Date: Thu, 7 May 2026 13:59:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(http):=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/http/http_utils.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/http/http_utils.dart b/lib/http/http_utils.dart index 7a3f9cd..cc3c424 100755 --- a/lib/http/http_utils.dart +++ b/lib/http/http_utils.dart @@ -237,7 +237,10 @@ class HttpUtils { ToastUtils.showToast(msg: '服务响应超时'); break; case DioExceptionType.unknown: - ToastUtils.showToast(msg: error.message); + ToastUtils.showToast( + msg: (error.message == '' || error.message?.isEmpty == true) + ? '请重新登录' + : error.message); break; case DioExceptionType.badResponse: try {