From d003e762d3ce72cafcc8ff34d63498bc57ea36b4 Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Mon, 7 Sep 2020 16:59:10 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E7=BC=93=E5=AD=98=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD=E3=80=82=E5=A6=82=E6=9E=9C=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=B0=B1=E4=B8=8D=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/net_util.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/util/net_util.dart b/lib/util/net_util.dart index 303aa2f..9e659aa 100644 --- a/lib/util/net_util.dart +++ b/lib/util/net_util.dart @@ -64,7 +64,7 @@ class NetUtil { headers: {'device': 'wx_applet', 'Platform': 'wx_applet'}, )); _dio.interceptors.add(_NetInterceptors()); - _dio.interceptors.add(LogInterceptor()); +// _dio.interceptors.add(LogInterceptor()); const bool inProduction = const bool.fromEnvironment("dart.vm.product"); if (proxyUrl != null && proxyUrl != '' && !inProduction) { @@ -287,8 +287,7 @@ class NetUtil { (cacheMap[GlobalConfig.HTTP_RESPONSE_KEY_CODE] == GlobalConfig.RESPONSE_SUCCESS_CODE || cacheMap[GlobalConfig.HTTP_RESPONSE_KEY_CODE] == - '${GlobalConfig.RESPONSE_SUCCESS_CODE}') && - null != cacheMap[GlobalConfig.HTTP_RESPONSE_KEY_DATA]) { + '${GlobalConfig.RESPONSE_SUCCESS_CODE}') && !EmptyUtil.isEmpty(cacheMap[GlobalConfig.HTTP_RESPONSE_KEY_DATA])) { onCache(cacheMap[GlobalConfig.HTTP_RESPONSE_KEY_DATA]); return; }