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; }