Commit fe3b3169 authored by 范雪寒's avatar 范雪寒

test:

parent 6d4a8d36
......@@ -36,13 +36,12 @@ export class NetworkHelper {
listenerInited = false;
initListener() {
if (this.listenerInited) {
this.log("MGOBE.Player.id = " + MGOBE.Player.id);
this.log("MGOBE.Player.openId = " + MGOBE.Player.openId);
if (MGOBE.Player.id !== undefined) {
return;
}
this.log('MGOBE.Player.id = ' + MGOBE.Player.id);
this.log('MGOBE.Player.openId = ' + MGOBE.Player.openId);
// MGOBE.Listener;
return new Promise((resolve, reject) => {
const gameId = "obg-i4ql53h1"; //替换为控制台上的 游戏 ID
......@@ -100,7 +99,6 @@ export class NetworkHelper {
this.log(JSON.stringify(event));
if (event.code !== 0) {
this.log("初始化失败: " + event.code);
await asyncDelay(2);
reject();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment