Commit 9148256d authored by 朱翠翠's avatar 朱翠翠

Merge branch 'zcc/flutter' into 'test'

注释

See merge request !61
parents 3a68fa99 3f65960e
...@@ -326,13 +326,13 @@ class ClueApiImpl { ...@@ -326,13 +326,13 @@ class ClueApiImpl {
} }
void _printHttpLog(Response response) { void _printHttpLog(Response response) {
if (!inProduction) { // if (!inProduction) {
try { // try {
printRespond(response); // printRespond(response);
} catch (ex) { // } catch (ex) {
print("Http Log" + " error......"); // print("Http Log" + " error......");
} // }
} // }
} }
static void printRespond(Response response) { static void printRespond(Response response) {
......
...@@ -6,15 +6,10 @@ ...@@ -6,15 +6,10 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:io';
import 'package:rxdart/rxdart.dart';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:gm_flutter/ClueModel/server/entity/PlanOverViewBean.dart'; import 'package:gm_flutter/ClueModel/server/entity/PlanOverViewBean.dart';
import 'package:rxdart/rxdart.dart';
const bool inProduction = const bool.fromEnvironment("dart.vm.product"); const bool inProduction = const bool.fromEnvironment("dart.vm.product");
...@@ -130,13 +125,13 @@ class ClueTApiImpl { ...@@ -130,13 +125,13 @@ class ClueTApiImpl {
} }
void _printHttpLog(Response response) { void _printHttpLog(Response response) {
if (!inProduction) { // if (!inProduction) {
try { // try {
printRespond(response); // printRespond(response);
} catch (ex) { // } catch (ex) {
print("Http Log" + " error......"); // print("Http Log" + " error......");
} // }
} // }
} }
static void printRespond(Response response) { static void printRespond(Response response) {
......
...@@ -7,6 +7,7 @@ import 'package:flutter_common/commonModel/util/WindowUtil.dart'; ...@@ -7,6 +7,7 @@ import 'package:flutter_common/commonModel/util/WindowUtil.dart';
import 'package:flutter_screenutil/screenutil.dart'; import 'package:flutter_screenutil/screenutil.dart';
import 'package:gm_flutter/main.mark.dart'; import 'package:gm_flutter/main.mark.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'commonModel/base/BaseComponent.dart'; import 'commonModel/base/BaseComponent.dart';
import 'commonModel/base/BaseUtil.dart'; import 'commonModel/base/BaseUtil.dart';
import 'commonModel/cache/CacheManager.dart'; import 'commonModel/cache/CacheManager.dart';
...@@ -14,6 +15,7 @@ import 'commonModel/nav/NavigationService.dart'; ...@@ -14,6 +15,7 @@ import 'commonModel/nav/NavigationService.dart';
import 'main.mark.dart'; import 'main.mark.dart';
NavigationService navigationService; NavigationService navigationService;
const bool inProduction = true;
void main() { void main() {
navigationService = NavigationService(); navigationService = NavigationService();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment