|
@@ -1226,6 +1226,19 @@
|
|
|
console.log("zh:logEventForAdHaveParams req = json=" + jsonStr);
|
|
|
this.bridge.call("logEventForAdHaveParams", eventName, jsonStr);
|
|
|
}
|
|
|
+ logEventForFirebase(eventName, jsonStr) {
|
|
|
+ console.log("zh:ts logEventForFirebase eventName1=" + eventName);
|
|
|
+ if (!Laya.Browser.onAndroid) {
|
|
|
+ console.log('zh:非android dev');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.initBridge()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log("zh:call logEventForFirebase eventName2=" + eventName);
|
|
|
+ console.log("zh:logEventForFirebase req = json=" + jsonStr);
|
|
|
+ this.bridge.call("logEventForFirebase", eventName, jsonStr);
|
|
|
+ }
|
|
|
nativeCallJs(msg) {
|
|
|
console.log("zh:nativeCallJs received data: 1111", msg);
|
|
|
if (msg === 'Ad1') {
|
|
@@ -6239,8 +6252,8 @@
|
|
|
let nameList = xGame.common.skillNameList;
|
|
|
let iconList = xGame.common.skillIconList;
|
|
|
let describeList = [
|
|
|
+ "A strike from the sky, like a meteor tearing through the heavens—delivering a thunderous blow! ",
|
|
|
"A break shot surging like a raging tide—powerful, explosive, and straight into the pocket!",
|
|
|
- "A strike from the sky, like a meteor tearing through the heavens—delivering a thunderous blow!",
|
|
|
"The power of frost descends—freezing the flow and taking full control of the game!"
|
|
|
];
|
|
|
console.log('zh:initSkillData 111111111');
|
|
@@ -6385,11 +6398,11 @@
|
|
|
this.addUIClick(this.ui.myNode.type2, this.enterGame, [2]);
|
|
|
this.addUIClick(this.ui.myNode.type3, this.enterGame, [3]);
|
|
|
this.addUIClick(this.ui.closeBtn, this.hide);
|
|
|
- this.peopleArr = [650, 6900, 3800];
|
|
|
- this.peopleOffest = [50, 500, 200];
|
|
|
- this.updateSelf();
|
|
|
+ this.peopleArr = [65, 990, 580];
|
|
|
+ this.peopleOffest = [5, 10, 10];
|
|
|
}
|
|
|
show(callback) {
|
|
|
+ this.updateSelf();
|
|
|
super.show();
|
|
|
this.ui.t0.play();
|
|
|
this.callback = callback;
|
|
@@ -7212,6 +7225,7 @@
|
|
|
if (count % 5 == 0) {
|
|
|
const reqStr = JSON.stringify(jsonStr);
|
|
|
JSBridgeUtils.instance.logEventForAdHaveParams('rod_complete_' + d2, reqStr);
|
|
|
+ JSBridgeUtils.instance.logEventForFirebase('rod_complete_' + d2, reqStr);
|
|
|
}
|
|
|
}
|
|
|
logEventForRod_win() {
|
|
@@ -7306,6 +7320,7 @@
|
|
|
if (jsonStr.count % 5 == 0) {
|
|
|
const reqStr = JSON.stringify(jsonStr);
|
|
|
JSBridgeUtils.instance.logEventForAdNoParams('classic_complete');
|
|
|
+ JSBridgeUtils.instance.logEventForFirebase('classic_complete', null);
|
|
|
}
|
|
|
}
|
|
|
updatePlaceBallBtn() {
|
|
@@ -7704,6 +7719,8 @@
|
|
|
console.log('zh:每5关上报1次');
|
|
|
let sjmc = 'challenge_level_' + level;
|
|
|
JSBridgeUtils.instance.logEventForAdNoParams(sjmc);
|
|
|
+ let sjmcForFirebase = 'challenge_level_' + level;
|
|
|
+ JSBridgeUtils.instance.logEventForFirebase(sjmcForFirebase, null);
|
|
|
}
|
|
|
else {
|
|
|
console.log('zh:5 no 上报');
|
|
@@ -8788,7 +8805,6 @@
|
|
|
xGame.common.d2World.rootBall.showSelf();
|
|
|
this.clearIceSkill();
|
|
|
if (this.selfTurn) {
|
|
|
- console.log("zh:处理一杆结束后的逻辑 gameResult");
|
|
|
PlatMgr.gameInsert();
|
|
|
}
|
|
|
xGame.common.d3World.knifeRoot.destroyChildren();
|
|
@@ -19293,6 +19309,7 @@
|
|
|
if (count % 5 == 0) {
|
|
|
const reqStr = JSON.stringify(jsonStr);
|
|
|
JSBridgeUtils.instance.logEventForAdHaveParams('rod_complete_' + d2, reqStr);
|
|
|
+ JSBridgeUtils.instance.logEventForFirebase('rod_complete_' + d2, reqStr);
|
|
|
}
|
|
|
}
|
|
|
logEventForRod_win() {
|
|
@@ -19387,6 +19404,7 @@
|
|
|
if (jsonStr.count % 5 == 0) {
|
|
|
const reqStr = JSON.stringify(jsonStr);
|
|
|
JSBridgeUtils.instance.logEventForAdNoParams('classic_complete');
|
|
|
+ JSBridgeUtils.instance.logEventForFirebase('classic_complete', null);
|
|
|
}
|
|
|
}
|
|
|
updatePlaceBallBtn() {
|
|
@@ -19785,6 +19803,8 @@
|
|
|
console.log('zh:每5关上报1次');
|
|
|
let sjmc = 'challenge_level_' + level;
|
|
|
JSBridgeUtils.instance.logEventForAdNoParams(sjmc);
|
|
|
+ let sjmcForFirebase = 'challenge_level_' + level;
|
|
|
+ JSBridgeUtils.instance.logEventForFirebase(sjmcForFirebase, null);
|
|
|
}
|
|
|
else {
|
|
|
console.log('zh:5 no 上报');
|
|
@@ -20428,8 +20448,8 @@
|
|
|
let nameList = xGame.common.skillNameList;
|
|
|
let iconList = xGame.common.skillIconList;
|
|
|
let describeList = [
|
|
|
+ "A strike from the sky, like a meteor tearing through the heavens—delivering a thunderous blow! ",
|
|
|
"A break shot surging like a raging tide—powerful, explosive, and straight into the pocket!",
|
|
|
- "A strike from the sky, like a meteor tearing through the heavens—delivering a thunderous blow!",
|
|
|
"The power of frost descends—freezing the flow and taking full control of the game!"
|
|
|
];
|
|
|
console.log('zh:initSkillData 111111111');
|
|
@@ -21714,11 +21734,11 @@
|
|
|
this.addUIClick(this.ui.myNode.type2, this.enterGame, [2]);
|
|
|
this.addUIClick(this.ui.myNode.type3, this.enterGame, [3]);
|
|
|
this.addUIClick(this.ui.closeBtn, this.hide);
|
|
|
- this.peopleArr = [650, 6900, 3800];
|
|
|
- this.peopleOffest = [50, 500, 200];
|
|
|
- this.updateSelf();
|
|
|
+ this.peopleArr = [65, 990, 580];
|
|
|
+ this.peopleOffest = [5, 10, 10];
|
|
|
}
|
|
|
show(callback) {
|
|
|
+ this.updateSelf();
|
|
|
super.show();
|
|
|
this.ui.t0.play();
|
|
|
this.callback = callback;
|