1
This commit is contained in:
parent
2461915900
commit
99cc1591c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user