游戏关卡上限更新 1720

This commit is contained in:
COMPUTER\EDY 2026-06-15 11:26:11 +08:00
parent 9c8c445fa6
commit f8583d070b
3 changed files with 8 additions and 7 deletions

View File

@ -9077,7 +9077,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 720, "width": 705,
"height": 702 "height": 702
}, },
"_anchorPoint": { "_anchorPoint": {

View File

@ -314,19 +314,19 @@ export default class MapConroler extends cc.Component {
} }
Utils.getCityRank((res) => { Utils.getCityRank((res) => {
if (res.code === 1) { if (res.code === 1) {
// console.log("城市排行数据:", res.data); console.log("城市排行数据:", res.data);
if (res.data.length > 0) { if (res.data.length > 0) {
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
if (res.data[i].addLevel <= cc.fx.GameConfig.GM_INFO.addLevel) { if (res.data[i].addLevel <= cc.fx.GameConfig.GM_INFO.addLevel) {
cc.fx.GameConfig.GM_INFO.cityRank = i + 1; cc.fx.GameConfig.GM_INFO.cityRank = i + 1;
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank; this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到"); console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到");
break; break;
} }
if (i == res.data.length - 1) { if (i == res.data.length - 1) {
cc.fx.GameConfig.GM_INFO.cityRank = i + 2; cc.fx.GameConfig.GM_INFO.cityRank = i + 2;
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank; this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名"); console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名");
} }
} }
} }
@ -3171,18 +3171,19 @@ export default class MapConroler extends cc.Component {
// alert("游戏成功"); // alert("游戏成功");
Utils.getCityRank((res) => { Utils.getCityRank((res) => {
if (res.code === 1) { if (res.code === 1) {
console.log("城市排行数据:", res.data);
if (res.data.length > 0) { if (res.data.length > 0) {
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
if (res.data[i].addLevel <= (cc.fx.GameConfig.GM_INFO.addLevel + 1)) { if (res.data[i].addLevel <= (cc.fx.GameConfig.GM_INFO.addLevel + 1)) {
cc.fx.GameConfig.GM_INFO.cityRank = i + 1; cc.fx.GameConfig.GM_INFO.cityRank = i + 1;
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank; this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到"); console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "榜单里没有,从比较中得到");
break; break;
} }
if (i == res.data.length - 1) { if (i == res.data.length - 1) {
cc.fx.GameConfig.GM_INFO.cityRank = i + 2; cc.fx.GameConfig.GM_INFO.cityRank = i + 2;
this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank; this.cityRank = cc.fx.GameConfig.GM_INFO.cityRank;
// console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名"); console.log("我的排名:", cc.fx.GameConfig.GM_INFO.cityRank, "我不在绑,且比不过最后一名");
} }
} }
} }

View File

@ -451,7 +451,7 @@ var GameTool = {
// cc.fx.StorageMessage.setStorage("level", levelInfo); // cc.fx.StorageMessage.setStorage("level", levelInfo);
// } // }
let max_level = 1700; let max_level = 1720;
if (cc.fx.GameConfig.GM_INFO.level > (max_level - 1)) { if (cc.fx.GameConfig.GM_INFO.level > (max_level - 1)) {
cc.fx.GameConfig.GM_INFO.level = max_level; cc.fx.GameConfig.GM_INFO.level = max_level;