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
0ade885a
Commit
0ade885a
authored
Oct 22, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
97cd3ad1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ABNetManager.ts
egret/libs/tc/manager/ABNetManager.ts
+2
-1
Main.ts
egret/src/Main.ts
+1
-1
No files found.
egret/libs/tc/manager/ABNetManager.ts
View file @
0ade885a
...
...
@@ -31,7 +31,7 @@ export abstract class ABNetManager {
if
(
net
.
addUrl
)
{
realUrl
+=
net
.
addUrl
;
}
console
.
log
(
`[send][
${
net
.
uri
}
]
${
JSON
.
stringify
(
net
.
param
)}
`
)
window
[
'$'
].
ajax
({
type
:
net
.
type
,
// url: realUrl + gTime,
...
...
@@ -40,6 +40,7 @@ export abstract class ABNetManager {
data
:
net
.
param
,
async
:
true
,
success
:
(
result
)
=>
{
console
.
log
(
`[success][
${
net
.
uri
}
]
${
JSON
.
stringify
(
result
)}
`
)
this
.
onResponse
(
net
,
result
);
},
error
:
(
message
)
=>
{
...
...
egret/src/Main.ts
View file @
0ade885a
...
...
@@ -46,4 +46,4 @@ setTimeout(() => {
}
});
},
10
);
\ No newline at end of file
},
500
);
\ No newline at end of file
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