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
73e3d6da
Commit
73e3d6da
authored
Jul 08, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
7f380552
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+1
-1
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+4
-7
No files found.
lib/ClueModel/page/plan/PlanPage.dart
View file @
73e3d6da
...
...
@@ -65,7 +65,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
// DioUtil.getInstance().setProxy("172.30.8.245");
super
.
initState
();
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
)
==
null
)
{
RouterCenterImpl
().
findMainRouter
().
getInitParams
().
whenComplete
((
)
{
RouterCenterImpl
().
findMainRouter
().
getInitParams
().
then
((
va
)
{
_model
.
init
();
});
}
else
{
...
...
lib/MainRouter/manager/MainManager.dart
View file @
73e3d6da
...
...
@@ -69,11 +69,8 @@ class MainManager {
innerSetData
(
map
,
USER_ID
);
innerSetData
(
map
,
USER_AGENT
);
innerSetData
(
map
,
BASE_URL
);
DioUtil
.
setDefOptions
(
baseUrl:
"
${map[BASE_URL]}
/"
,
agent:
map
[
USER_AGENT
]);
DioUtil
.
setDefOptions
(
baseUrl:
"
${map[BASE_URL]}
/"
,
agent:
map
[
USER_AGENT
]);
if
(
map
[
COOKIE
]
==
null
)
{
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
save
(
COOKIE
,
"_gm_token=1da6071594101423; csrftoken=rUrkkYYMOVZfIIQnU2IH09QIGmsfe8tE; sessionid=uz7f70uap76r6og48znci5l2hbr9vm5c; _gtid=5af9a5deba8511ea8d4082a085c393c93393"
);
...
...
@@ -111,7 +108,7 @@ class MainManager {
}
Future
getInitParams
()
async
{
Completer
completer
=
Completer
();
//
Completer completer = Completer();
if
(
isInit
)
{
if
(
flutterChannel
!=
null
)
{
var
data
=
await
flutterChannel
.
invokeMethod
(
"get_common_params"
);
...
...
@@ -121,7 +118,7 @@ class MainManager {
}
}
}
completer
.
complete
();
return
completer
.
future
;
//
completer.complete();
return
Future
.
value
(
""
)
;
}
}
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