连胜上报

This commit is contained in:
COMPUTER\EDY 2026-07-22 19:32:28 +08:00
parent da87556270
commit a1dd6527f3
4 changed files with 19 additions and 4 deletions

View File

@ -62774,7 +62774,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
340.483,
340.583,
21.918,
0,
0,

View File

@ -326,8 +326,8 @@ export default class GameManager extends cc.Component {
if (data.data.token) {
cc.fx.GameConfig.GM_INFO.token = data.data.token;
}
if (data.data.abTests)
this.setABTests(data.data.abTests);
if (data.data.abTests)
this.setABTests(data.data.abTests);
if (data.data.forcedUpdate) {
const timestamp = Date.now();

View File

@ -568,6 +568,7 @@ export default class MapConroler extends cc.Component {
let data = {
"is_frenzy": this.is_frenzy,
"infinity": endLevel,
"win_streak": cc.fx.GameConfig.GM_INFO.winStreak,
}
if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
cc.fx.GameConfig.GM_INFO.winState = false;
@ -3873,7 +3874,7 @@ export default class MapConroler extends cc.Component {
// }
// });
setTimeout(() => {
this.node.parent.parent.parent.getChildByName("Pause").active = false;
if (cc.fx.GameTool.maxLevel() && cc.fx.GameConfig.GM_INFO.GameplayType == 1) {
cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false, true);
} else {
@ -4123,6 +4124,7 @@ export default class MapConroler extends cc.Component {
is_frenzy: this.is_frenzy,
result: name + "reason: " + customEventData,
infinity: endLevel,
win_streak: cc.fx.GameConfig.GM_INFO.winStreak,
}
cc.fx.GameTool.shushu_Track("finish_stage", data);
@ -6751,6 +6753,10 @@ export default class MapConroler extends cc.Component {
if (this.winStreakBtn.node)
this.winStreakBtn.node.active = false;
this.destroyBtn.node.getChildByName("mul10").opacity = 255;
cc.fx.GameTool.shushu_Track("win_streak_tool_use", {
item_id: "2002",
count_down: this.timeNumber,
});
}
else MiniGameSdk.API.showToast("道具使用中,请稍后再试");
}

View File

@ -1,4 +1,5 @@
import WinStreak from "../../../action_bundle/script/WinStreak";
import JiaZai from "../../JiaZai";
import MapConroler from "../../Map";
import Freeze from "../../prop/Freeze";
@ -1319,6 +1320,7 @@ var GameTool = {
stage_id: userLevel,
is_frenzy: data.is_frenzy,
infinity: data.infinity,
win_streak: data.win_streak,
}
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
eventData = {
@ -1338,6 +1340,7 @@ var GameTool = {
is_frenzy: data.is_frenzy,
result: data.result,
infinity: data.infinity,
win_streak: data.win_streak,
}
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
eventData = {
@ -1459,6 +1462,12 @@ var GameTool = {
is_paid_bp_usr: data.is_paid_bp_usr,//是否是战令付费档位, boolean
}
break;
case "win_streak_tool_use":
eventData = {
item_id: data.item_id, //使用的道具种类, 目前只有锤子
count_down: data.count_down //局内倒计时, int
}
break;
}
if (name == "stage_help") {
console.log("准备上报完成", data);