This commit is contained in:
zhuguoqing 2022-05-24 18:41:10 +08:00
parent 8ee5c7a5a3
commit 074b0262e6
6 changed files with 80 additions and 76 deletions

View File

@ -47,8 +47,8 @@
}, },
"_scale": { "_scale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.5703125, "x": 0.607421875,
"y": 0.5703125, "y": 0.607421875,
"z": 1 "z": 1
}, },
"_quat": { "_quat": {

View File

@ -389,7 +389,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 504.64, "width": 613.68,
"height": 80 "height": 80
}, },
"_anchorPoint": { "_anchorPoint": {
@ -432,8 +432,8 @@
}, },
"_enabled": true, "_enabled": true,
"_useOriginalSize": false, "_useOriginalSize": false,
"_string": "UNABLE TO PLAY", "_string": "The Battleground is full",
"_N$string": "UNABLE TO PLAY", "_N$string": "The Battleground is full",
"_fontSize": 60, "_fontSize": 60,
"_lineHeight": 80, "_lineHeight": 80,
"_enableWrapText": true, "_enableWrapText": true,

View File

@ -24,18 +24,18 @@ export var allBaseNet = {
turkey: '-z4-test.cebg.games', turkey: '-z4-test.cebg.games',
}; };
const netIdHash = function () { const netIdHash = (function () {
const result = {}; const result = {};
for (let key in allBaseNet) { for (let key in allBaseNet) {
const url = allBaseNet[key]; const url = allBaseNet[key];
const zid = extractZid(url); const zid = extractZid(url);
result[zid] = { result[zid] = {
'name': key, name: key,
'url': url url: url,
}; };
} }
return result; return result;
}(); })();
const functionNet = { const functionNet = {
login: 'https://login', // ok login: 'https://login', // ok
@ -60,8 +60,12 @@ function getCommonParam() {
} else { } else {
os = cc.sys.os; os = cc.sys.os;
} }
return '_net=' + encodeURIComponent(localStorage.getItem('currentNet')) + return (
'&_os=' + encodeURIComponent(os); '_net=' +
encodeURIComponent(localStorage.getItem('currentNet')) +
'&_os=' +
encodeURIComponent(os)
);
} }
export function getNormalApiUrl(name) { export function getNormalApiUrl(name) {
@ -84,9 +88,7 @@ export function getExaminingUrl() {
export function getRelationUrl() { export function getRelationUrl() {
return ( return (
functionNet['relation'] + functionNet['relation'] + '-z3-test.cebg.games' + '/friend/websocket'
'-z3-test.cebg.games' +
'/friend/websocket'
); );
} }
@ -151,7 +153,9 @@ function getZName(zid) {
export function getGameServer(teamUuid) { export function getGameServer(teamUuid) {
const nodeId = teamUuid ? teamUuid.split('_')[0] : cc.SDKManage.NodeId; const nodeId = teamUuid ? teamUuid.split('_')[0] : cc.SDKManage.NodeId;
const zid = teamUuid ? teamUuid.split('_')[1] : extractZid(localStorage.getItem('currentNet')); const zid = teamUuid
? teamUuid.split('_')[1]
: extractZid(localStorage.getItem('currentNet'));
let urls = teamUuid ? getZUrl(zid) : localStorage.getItem('currentNet'); let urls = teamUuid ? getZUrl(zid) : localStorage.getItem('currentNet');
urls = urls.split('.'); urls = urls.split('.');
urls[0] += '-n' + nodeId; urls[0] += '-n' + nodeId;

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"packageUrl":"https://test.kingsome.cn/game2006/test/slim/","remoteManifestUrl":"https://test.kingsome.cn/game2006/test/slim/project.manifest","remoteVersionUrl":"https://test.kingsome.cn/game2006/test/slim/version.manifest","version":"0.1.0"} {"packageUrl":"https://test.kingsome.cn/game2006/test/slim/","remoteManifestUrl":"https://test.kingsome.cn/game2006/test/slim/project.manifest","remoteVersionUrl":"https://test.kingsome.cn/game2006/test/slim/version.manifest","version":"0.2.0"}

View File

@ -14,7 +14,7 @@
"orientation": "portrait", "orientation": "portrait",
"subContext": "" "subContext": ""
}, },
"encryptJs": true, "encryptJs": false,
"excludeScenes": [ "excludeScenes": [
"91f1147b-d337-4f4f-a5bd-0db14510fd88" "91f1147b-d337-4f4f-a5bd-0db14510fd88"
], ],