diff --git a/assets/scripts/BaseNet.js b/assets/scripts/BaseNet.js index d140144f..b16f239b 100644 --- a/assets/scripts/BaseNet.js +++ b/assets/scripts/BaseNet.js @@ -5,10 +5,8 @@ export var allBaseNet = { turkey: '-z4-test.cebg.games', }; -isDevEnv(); - function isDevEnv() { - return true + return true; // var toreturn = false // if(cc.debug){ // return true; @@ -26,7 +24,7 @@ function isExamining() { function getDevEnvUrlSuffix() { //'-test.kingsome.cn' - return btoa('LXRlc3Qua2luZ3NvbWUuY24='); + return atob('LXRlc3Qua2luZ3NvbWUuY24='); } function getExaminingUrlSuffix() { @@ -181,10 +179,10 @@ function getZName(zid) { export function getGameServer(teamUuid) { if (isDevEnv()) { - return 'wss://game2006' + getDevEnvUrlSuffix() '/websocket'; + return 'wss://game2006' + getDevEnvUrlSuffix() + '/websocket'; } if (isExamining()) { - return 'wss://game2006' + getExaminingUrlSuffix() '/websocket'; + return 'wss://game2006' + getExaminingUrlSuffix() + '/websocket'; } const nodeId = teamUuid ? teamUuid.split('_')[0] : cc.SDKManage.NodeId; const zid = teamUuid