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
d58c5c8d
Commit
d58c5c8d
authored
Jul 14, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
00f70d15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
LevelOneList.dart
lib/ClueModel/page/levelOne/LevelOneList.dart
+11
-11
DioInterceptor.dart
lib/commonModel/net/DioInterceptor.dart
+10
-4
No files found.
lib/ClueModel/page/levelOne/LevelOneList.dart
View file @
d58c5c8d
...
...
@@ -150,6 +150,17 @@ class LevelOneListState extends State<LevelOneList>
NativeToast
.
showNativeToast
(
"该机构未开通私信功能"
);
return
;
}
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
null
&&
RouterCenterImpl
()
.
findMainRouter
()
.
isWithNative
())
{
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
context
,
"show_login"
,
null
,
true
);
return
;
}
buried_on_click_button
(
index
,
"consult"
,
"doctor"
,
data2
.
doctor
.
doctor_id
);
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
...
...
@@ -170,17 +181,6 @@ class LevelOneListState extends State<LevelOneList>
null
,
true
);
}
else
if
(
data2
.
cardType
==
"plan"
)
{
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
null
&&
RouterCenterImpl
()
.
findMainRouter
()
.
isWithNative
())
{
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
context
,
"show_login"
,
null
,
true
);
return
;
}
buried_on_click_button
(
index
,
"consult"
,
"level_two_plan"
,
"
${data2.plan.plan_id}
"
);
BaseBottomPicker
()
...
...
lib/commonModel/net/DioInterceptor.dart
View file @
d58c5c8d
...
...
@@ -7,6 +7,7 @@ import 'dart:io';
import
'package:dio/dio.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'../../main.dart'
;
import
'../App.dart'
;
import
'DioUtil.dart'
;
...
...
@@ -120,12 +121,17 @@ class DioInterceptorManager {
"
${CacheManager.getInstance().get(MEMORY_CACHE).get(CURRENT_CITY_ID)}
"
;
}
}
print
(
"请求之前 onRequest
${opt.uri}${opt.queryParameters}${opt.headers}
"
);
if
(!
inProduction
)
{
print
(
"请求之前 onRequest
${opt.uri}${opt.queryParameters}${opt.headers}
"
);
}
},
onResponse:
(
response
)
{
print
(
"响应之前 "
);
if
(!
inProduction
)
{
print
(
"响应之前 "
);
}
},
onError:
(
e
)
{
print
(
"网络错误
$e
message
${e.message}
"
);
if
(!
inProduction
)
{
print
(
"网络错误
$e
message
${e.message}
"
);
}
});
}
...
...
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