Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
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
崔立强
db-game-template
Commits
600ff62b
Commit
600ff62b
authored
Nov 01, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
362bdd05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
MainBase.ts
egret/libs/new_wx/MainBase.ts
+5
-2
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+2
-1
index.json
mock/esports/index.json
+1
-1
No files found.
egret/libs/new_wx/MainBase.ts
View file @
600ff62b
...
@@ -175,8 +175,11 @@ export default class MainBase extends eui.UILayer {
...
@@ -175,8 +175,11 @@ export default class MainBase extends eui.UILayer {
}
}
getIndex
()
{
getIndex
()
{
return
new
Promise
((
r
)
=>
{
return
new
Promise
((
r
)
=>
{
NetManager
.
ins
.
yyh_index
(
async
()
=>
{
NetManager
.
ins
.
yyh_index
(
async
(
success
)
=>
{
r
();
if
(
!
success
)
{
location
.
href
=
'https://activity.m.duiba.com.cn/customShare/share?id=3627'
}
else
r
();
});
});
})
})
}
}
...
...
egret/libs/tw/manager/NetManager.ts
View file @
600ff62b
...
@@ -991,7 +991,8 @@ export class NetManager extends ABNetManager {
...
@@ -991,7 +991,8 @@ export class NetManager extends ABNetManager {
type
:
'get'
,
type
:
'get'
,
dataType
:
'json'
,
dataType
:
'json'
,
param
:
param
,
param
:
param
,
callback
:
callback
callback
:
callback
,
hideMsg
:
true
};
};
this
.
send
(
net
);
this
.
send
(
net
);
}
}
...
...
mock/esports/index.json
View file @
600ff62b
{
{
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"success"
:
true
,
"success"
:
0
,
"timestamp"
:
1564121038421
,
"timestamp"
:
1564121038421
,
"data"
:{
"data"
:{
"lighten"
:
1
,
"lighten"
:
1
,
...
...
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