From f63c5659443b1b4a12185e3e12644d8860d8d368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=B0=91=E9=98=B3?= <786612630@qq.com> Date: Wed, 17 Apr 2024 15:59:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E5=9B=9E=E5=BD=92=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- star_lock/lib/network/api_provider_base.dart | 7 ++++--- star_lock/pubspec.yaml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/star_lock/lib/network/api_provider_base.dart b/star_lock/lib/network/api_provider_base.dart index 3e2c36d7..2674385e 100644 --- a/star_lock/lib/network/api_provider_base.dart +++ b/star_lock/lib/network/api_provider_base.dart @@ -52,12 +52,13 @@ class BaseProvider extends GetConnect with Api { // print('res.body======>${res.body}'); if (res.body == null) { if (EasyLoading.isShow) await EasyLoading.dismiss(animation: true); - EasyLoading.showToast("网络访问失败,请检查网络是否正常".tr, duration: 2000.milliseconds); + Get.log("111网络访问失败,请检查网络是否正常"); // EasyLoading.showToast("Network Error!", duration: 2000.milliseconds); - // if (res.statusCode == null) { + if (res.statusCode == null) { + EasyLoading.showToast("网络访问失败,请检查网络是否正常".tr, duration: 2000.milliseconds); // EasyLoading.showToast("Network Error!", duration: 2000.milliseconds); - // } + } var rs = { "errorMsg": "Network Error!", "errorCode": -1, diff --git a/star_lock/pubspec.yaml b/star_lock/pubspec.yaml index 043560a5..d2f41b92 100644 --- a/star_lock/pubspec.yaml +++ b/star_lock/pubspec.yaml @@ -31,9 +31,9 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 1.0.26+20240408:打包预发布环境给欧阳测试 # 1.0.27+2024041101:打包提审 # 1.0.27+2024041102:打包预发布环境给田总测试 +# 1.0.28+2024041702:打包给欧阳回归测试 - -version: 1.0.27+2024041701 +version: 1.0.28+2024041702 environment: sdk: '>=2.12.0 <3.0.0'