Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
gm_flutter
Commits
3f65960e
Commit
3f65960e
authored
Jul 14, 2020
by
朱翠翠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释
parent
3a68fa99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
20 deletions
+17
-20
ClueApi.serv.dart
lib/ClueModel/server/api/ClueApi.serv.dart
+7
-7
ClueTApi.serv.dart
lib/ClueModel/server/api/ClueTApi.serv.dart
+8
-13
main.dart
lib/main.dart
+2
-0
No files found.
lib/ClueModel/server/api/ClueApi.serv.dart
View file @
3f65960e
...
...
@@ -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
)
{
...
...
lib/ClueModel/server/api/ClueTApi.serv.dart
View file @
3f65960e
...
...
@@ -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
)
{
...
...
lib/main.dart
View file @
3f65960e
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment