Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_16
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
op_16
Commits
0ce3fb84
Commit
0ce3fb84
authored
Feb 21, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test:
parent
c4009ceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
NetworkHelper.ts
assets/op_16/script/NetworkHelper.ts
+4
-1
No files found.
assets/op_16/script/NetworkHelper.ts
View file @
0ce3fb84
...
@@ -93,10 +93,11 @@ export class NetworkHelper {
...
@@ -93,10 +93,11 @@ export class NetworkHelper {
this
.
log
(
"
initListener
"
);
this
.
log
(
"
initListener
"
);
MGOBE
.
Listener
.
init
(
gameInfo
,
config
,
(
event
)
=>
{
MGOBE
.
Listener
.
init
(
gameInfo
,
config
,
async
(
event
)
=>
{
this
.
log
(
JSON
.
stringify
(
event
));
this
.
log
(
JSON
.
stringify
(
event
));
if
(
event
.
code
!==
0
)
{
if
(
event
.
code
!==
0
)
{
this
.
log
(
"
初始化失败:
"
+
event
.
code
);
this
.
log
(
"
初始化失败:
"
+
event
.
code
);
await
asyncDelay
(
2
);
reject
();
reject
();
return
;
return
;
}
}
...
@@ -104,6 +105,8 @@ export class NetworkHelper {
...
@@ -104,6 +105,8 @@ export class NetworkHelper {
this
.
log
(
"
初始化成功
"
);
this
.
log
(
"
初始化成功
"
);
resolve
(
null
);
resolve
(
null
);
});
});
this
.
log
(
"
initListener2
"
);
});
});
}
}
...
...
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