33 lines
962 B
JavaScript
33 lines
962 B
JavaScript
const TestCase = require('./testcase');
|
|
|
|
const urls = {
|
|
'login': 'https://login-z2-test.cebg.games',
|
|
'relation': 'wss://relation-test.kingsome.cn/friend/websocket',
|
|
'cloud': 'https://cloud-z2-test.cebg.games',
|
|
'service': 'https://service-z2-test.cebg.games',
|
|
'gamelog': 'https://gamelog-z2-test.cebg.games',
|
|
'mail': 'https://gamemail-z2-test.cebg.games',
|
|
'game2006api': 'https://game2006api-z2-test.cebg.games',
|
|
'game2006': 'https://game2006-z2-test.cebg.games',
|
|
'game2006-n1': 'https://game2006-n1-z2-test.cebg.games',
|
|
};
|
|
|
|
async function start() {
|
|
const testCase = new TestCase(urls);
|
|
await testCase.init();
|
|
/*await clientNet.init();
|
|
await clientNet.connect();
|
|
clientNet.on('connect', () => {
|
|
console.log('onConnect');
|
|
clientNet.registerMsgHandle('SMLogin', (msg) => {
|
|
|
|
});
|
|
clientNet.sendMsg('CMLogin', {
|
|
accountId: loginData['account_id'],
|
|
sessionId: loginData['session_id'],
|
|
});
|
|
});*/
|
|
}
|
|
|
|
start();
|