This commit is contained in:
COMPUTER\EDY
2026-09-11 19:12:58 +08:00
37 changed files with 4268 additions and 4614 deletions
+1 -1
View File
@@ -714,7 +714,7 @@ export class GameConfig {
vibrateOpen: true, //震动
coinnum: 0, //每局的金币数
paid_user: false, //是否是付费用户
version: "1.0.51", //版本号
version: "1.0.54", //版本号
shushu_DistinctId: "", //数数访客ID
shushu_AccountId: "", //数数账号ID
uid: "", //用户和后端唯一id
+12 -10
View File
@@ -388,9 +388,11 @@ var GameTool = {
//增加关卡数
addLevel(time1, time2, callBack) {
if (cc.fx.GameTool.maxLevel()) {
} else {
const isMaxLevel = cc.fx.GameTool.maxLevel();
// 结算记录本局关卡,避免进度自增后变成下一关或误判为无尽模式。
const endLevel = isMaxLevel && cc.fx.GameConfig.GM_INFO.GameplayType == 1;
const stageId = endLevel ? cc.fx.GameConfig.GM_INFO.randomLevel : cc.fx.GameConfig.GM_INFO.level + 1;
if (!isMaxLevel) {
cc.fx.GameConfig.GM_INFO.level += 1;
}
@@ -411,11 +413,8 @@ var GameTool = {
use_frenzy = MapConroler._instance.use_frenzy;
}
if (time1 != null && time2 != null) {
let endLevel = false;
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
endLevel = true;
}
let data = {
stage_id: stageId,
time: time1,
add_Time: time2,
is_frenzy: is_frenzy,
@@ -1396,9 +1395,12 @@ var GameTool = {
}
break;
case "finish_stage":
let userLevel2 = (cc.fx.GameConfig.GM_INFO.level + 1);
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
userLevel2 = cc.fx.GameConfig.GM_INFO.randomLevel;
let userLevel2 = data.stage_id;
if (userLevel2 == null) {
userLevel2 = cc.fx.GameConfig.GM_INFO.level + 1;
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
userLevel2 = cc.fx.GameConfig.GM_INFO.randomLevel;
}
}
eventData = {
stage_id: userLevel2,