1
This commit is contained in:
parent
be1dc9dc2d
commit
e886664e02
@ -8,7 +8,7 @@ const urls = {
|
|||||||
'mail': 'https://gamemail-z2-test.cebg.games',
|
'mail': 'https://gamemail-z2-test.cebg.games',
|
||||||
'game2006api': 'https://game2006api-z2-test.cebg.games',
|
'game2006api': 'https://game2006api-z2-test.cebg.games',
|
||||||
'relation': 'wss://relation-test.kingsome.cn/friend/websocket',
|
'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',
|
'game2006-n1': 'wss://game2006-n1-z2-test.cebg.games',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ class ClientNet {
|
|||||||
if (!msg) {
|
if (!msg) {
|
||||||
msg = value.msgType.decode(buff);
|
msg = value.msgType.decode(buff);
|
||||||
}
|
}
|
||||||
console.log(msg, msg.accountInfo.userInfo.baseData.accountId);
|
|
||||||
value.cb(msg);
|
value.cb(msg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ class TestCase {
|
|||||||
this.relationWs.on('connect', () => {
|
this.relationWs.on('connect', () => {
|
||||||
console.log('relation onConnect');
|
console.log('relation onConnect');
|
||||||
this.relationWs.registerMsgHandle('SMLogin', (msg) => {
|
this.relationWs.registerMsgHandle('SMLogin', (msg) => {
|
||||||
|
console.log(msg);
|
||||||
});
|
});
|
||||||
this.relationWs.sendMsg('CMLogin', {
|
this.relationWs.sendMsg('CMLogin', {
|
||||||
accountId: this.loginData['account_id'],
|
accountId: this.loginData['account_id'],
|
||||||
@ -144,7 +144,7 @@ class TestCase {
|
|||||||
this.battleWs.on('connect', () => {
|
this.battleWs.on('connect', () => {
|
||||||
console.log('battle onConnect');
|
console.log('battle onConnect');
|
||||||
this.battleWs.registerMsgHandle('SMJoinedNotify', (msg) => {
|
this.battleWs.registerMsgHandle('SMJoinedNotify', (msg) => {
|
||||||
|
console.log(msg);
|
||||||
});
|
});
|
||||||
this.battleWs.sendMsg('CMJoin', {
|
this.battleWs.sendMsg('CMJoin', {
|
||||||
accountId: this.loginData['account_id'],
|
accountId: this.loginData['account_id'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user