This commit is contained in:
aozhiwei 2022-04-28 12:36:32 +08:00
parent be1dc9dc2d
commit e886664e02
3 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,7 @@ const urls = {
'mail': 'https://gamemail-z2-test.cebg.games',
'game2006api': 'https://game2006api-z2-test.cebg.games',
'relation': 'wss://relation-test.kingsome.cn/friend/websocket',
'game2006': 'wss://game2006-z2-test.cebg.games',
'game2006': 'ws://game2006-z2-test.cebg.games',
'game2006-n1': 'wss://game2006-n1-z2-test.cebg.games',
};

View File

@ -78,7 +78,6 @@ class ClientNet {
if (!msg) {
msg = value.msgType.decode(buff);
}
console.log(msg, msg.accountInfo.userInfo.baseData.accountId);
value.cb(msg);
});
}

View File

@ -129,7 +129,7 @@ class TestCase {
this.relationWs.on('connect', () => {
console.log('relation onConnect');
this.relationWs.registerMsgHandle('SMLogin', (msg) => {
console.log(msg);
});
this.relationWs.sendMsg('CMLogin', {
accountId: this.loginData['account_id'],
@ -144,7 +144,7 @@ class TestCase {
this.battleWs.on('connect', () => {
console.log('battle onConnect');
this.battleWs.registerMsgHandle('SMJoinedNotify', (msg) => {
console.log(msg);
});
this.battleWs.sendMsg('CMJoin', {
accountId: this.loginData['account_id'],