提交
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -38,7 +38,7 @@ export default class SevenDayGiftBootstrapApi {
|
||||
}, 5500);
|
||||
|
||||
Utils.POST(endpoint, params, response => {
|
||||
console.log("[signInActivityInfo] 回复" + (completed ? "(已超时或重复,不再处理)" : ""), JSON.stringify(response, null, 2));
|
||||
// console.log("[signInActivityInfo] 回复" + (completed ? "(已超时或重复,不再处理)" : ""), JSON.stringify(response, null, 2));
|
||||
if (completed) return;
|
||||
completed = true;
|
||||
clearTimeout(timeoutHandle);
|
||||
|
||||
Reference in New Issue
Block a user