Commit 3f65960e authored by 朱翠翠's avatar 朱翠翠

注释

parent 3a68fa99
......@@ -326,13 +326,13 @@ class ClueApiImpl {
}
void _printHttpLog(Response response) {
if (!inProduction) {
try {
printRespond(response);
} catch (ex) {
print("Http Log" + " error......");
}
}
// if (!inProduction) {
// try {
// printRespond(response);
// } catch (ex) {
// print("Http Log" + " error......");
// }
// }
}
static void printRespond(Response response) {
......
......@@ -6,15 +6,10 @@
import 'dart:convert';
import 'dart:io';
import 'package:rxdart/rxdart.dart';
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';
import 'package:gm_flutter/ClueModel/server/entity/PlanOverViewBean.dart';
import 'package:rxdart/rxdart.dart';
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
......@@ -130,13 +125,13 @@ class ClueTApiImpl {
}
void _printHttpLog(Response response) {
if (!inProduction) {
try {
printRespond(response);
} catch (ex) {
print("Http Log" + " error......");
}
}
// if (!inProduction) {
// try {
// printRespond(response);
// } catch (ex) {
// print("Http Log" + " error......");
// }
// }
}
static void printRespond(Response response) {
......
......@@ -7,6 +7,7 @@ import 'package:flutter_common/commonModel/util/WindowUtil.dart';
import 'package:flutter_screenutil/screenutil.dart';
import 'package:gm_flutter/main.mark.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'commonModel/base/BaseComponent.dart';
import 'commonModel/base/BaseUtil.dart';
import 'commonModel/cache/CacheManager.dart';
......@@ -14,6 +15,7 @@ import 'commonModel/nav/NavigationService.dart';
import 'main.mark.dart';
NavigationService navigationService;
const bool inProduction = true;
void main() {
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