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