|
@@ -6110,6 +6110,7 @@
|
|
|
xGame.common.upSkillLevel = true;
|
|
|
}
|
|
|
startGame() {
|
|
|
+ console.log('zh:rod skill startgame');
|
|
|
if (this.data.index == 3) {
|
|
|
alert('Coming soon!');
|
|
|
return;
|
|
@@ -6129,6 +6130,7 @@
|
|
|
xGame.common.curPlayerSkillType = this.index;
|
|
|
if (guide == 0)
|
|
|
xGame.common.curPlayerSkillType = 0;
|
|
|
+ console.log('zh: skilldisplay 1');
|
|
|
xGame.uiMgr.Show(UIGame);
|
|
|
xGame.uiMgr.Hide(UIMain);
|
|
|
xGame.uiMgr.Show(UIMatching, () => {
|
|
@@ -6136,12 +6138,43 @@
|
|
|
xGame.common.gameUI.startGame();
|
|
|
xGame.uiMgr.Hide(UISkill);
|
|
|
});
|
|
|
+ this.logEventForRod_start();
|
|
|
}
|
|
|
else {
|
|
|
+ console.log('zh: skilldisplay 2');
|
|
|
xGame.uiMgr.Show(UIAddProp, 0);
|
|
|
Moyu.sendDataEvent("AddCoinVideo");
|
|
|
}
|
|
|
}
|
|
|
+ logEventForRod_start() {
|
|
|
+ let gfmsIdx = xGame.common.curPlayerSkillType;
|
|
|
+ console.log('zh:选择的技能=' + gfmsIdx);
|
|
|
+ let gfmc = 'Skyfall Shot';
|
|
|
+ if (gfmsIdx == 0) {
|
|
|
+ gfmc = 'Skyfall Shot';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 1) {
|
|
|
+ gfmc = 'Surging break';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 2) {
|
|
|
+ gfmc = 'Frost Lock';
|
|
|
+ }
|
|
|
+ let keyStr = 'sjmd_rod_start_' + gfmsIdx;
|
|
|
+ let jsonStr = {
|
|
|
+ "count": 1,
|
|
|
+ "name": gfmc
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.count = d.count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('rod_start', reqStr);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class UISkill extends UIBase {
|
|
@@ -6382,6 +6415,7 @@
|
|
|
Laya.timer.once(200, this, () => {
|
|
|
this.callback && this.callback();
|
|
|
});
|
|
|
+ this.logEventForClassic_start();
|
|
|
}
|
|
|
else {
|
|
|
Moyu.sendDataEvent("AddCoinVideo");
|
|
@@ -6392,6 +6426,36 @@
|
|
|
let rand = this.peopleOffest[index];
|
|
|
return this.peopleArr[index] + xGame.common.randomNum(-rand, rand);
|
|
|
}
|
|
|
+ logEventForClassic_start() {
|
|
|
+ let rtype = xGame.common.classicRoomType;
|
|
|
+ let msmc = '';
|
|
|
+ if (rtype == 1) {
|
|
|
+ msmc = 'beginner';
|
|
|
+ }
|
|
|
+ if (rtype == 2) {
|
|
|
+ msmc = 'expert';
|
|
|
+ }
|
|
|
+ if (rtype == 3) {
|
|
|
+ msmc = 'master';
|
|
|
+ }
|
|
|
+ let keyStr = 'sjmd_classic_start_' + rtype;
|
|
|
+ let jsonStr = {
|
|
|
+ "difficulty": msmc,
|
|
|
+ "classic_count": 1,
|
|
|
+ "difficulty_count": 1
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.classic_count = d.classic_count + 1;
|
|
|
+ jsonStr.difficulty_count = d.difficulty_count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('classic_start', reqStr);
|
|
|
+ }
|
|
|
}
|
|
|
UIModeSelection.uiName = "UIModeSelection";
|
|
|
|
|
@@ -7041,12 +7105,16 @@
|
|
|
xGame.uiMgr.Show(UIAddCoin);
|
|
|
});
|
|
|
}
|
|
|
+ else {
|
|
|
+ this.logEventForClassic_win();
|
|
|
+ }
|
|
|
this.ui.isGetAward.visible = false;
|
|
|
this.ui.leftBtn.c1.selectedIndex = 3;
|
|
|
this.ui.rightBtn.c1.selectedIndex = 0;
|
|
|
this.moneyNode.ui.c1.selectedIndex = 1;
|
|
|
break;
|
|
|
case GameMode.bigMove:
|
|
|
+ console.log('zh:招法模式 aaaaaa bigMove');
|
|
|
this.ui.c1.selectedIndex = this.success ? 0 : 1;
|
|
|
this.ui.coinNode.visible = this.success;
|
|
|
if (xGame.common.gameMode == GameMode.bigMove) {
|
|
@@ -7058,11 +7126,15 @@
|
|
|
DataMgr.setSkillSuccessTimes(0, false);
|
|
|
}
|
|
|
}
|
|
|
+ this.logEventForRod_complete_N();
|
|
|
if (!this.success) {
|
|
|
Laya.timer.once(500, this, () => {
|
|
|
xGame.uiMgr.Show(UIAddCoin);
|
|
|
});
|
|
|
}
|
|
|
+ else {
|
|
|
+ this.logEventForRod_win();
|
|
|
+ }
|
|
|
this.ui.isGetAward.visible = false;
|
|
|
this.ui.leftBtn.c1.selectedIndex = 3;
|
|
|
this.ui.rightBtn.c1.selectedIndex = 0;
|
|
@@ -7077,6 +7149,13 @@
|
|
|
else {
|
|
|
this.ui.c1.selectedIndex = 3;
|
|
|
}
|
|
|
+ let level = xGame.common.placeBallCurLevel;
|
|
|
+ if (level > 59) {
|
|
|
+ this.logEventForChallenge_level_complete(level);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.logEventForChallenge_level_N(level);
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
this.ui.c1.selectedIndex = 4;
|
|
@@ -7098,6 +7177,105 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ logEventForRod_complete_N() {
|
|
|
+ let gfmsIdx = xGame.common.curPlayerSkillType;
|
|
|
+ console.log('zh:logEventForRod_complete_N 选择的技能=' + gfmsIdx);
|
|
|
+ let gfmc = 'Skyfall Shot';
|
|
|
+ if (gfmsIdx == 0) {
|
|
|
+ gfmc = 'Skyfall Shot';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 1) {
|
|
|
+ gfmc = 'Surging break';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 2) {
|
|
|
+ gfmc = 'Frost Lock';
|
|
|
+ }
|
|
|
+ let level = DataMgr.getBigSkillByIndex(gfmsIdx);
|
|
|
+ console.log('zh:logEventForRod_complete_N level = ' + level);
|
|
|
+ let keyStr = 'sjmd_rod_start_' + gfmsIdx;
|
|
|
+ let jsonStr = {
|
|
|
+ "count": 1,
|
|
|
+ "name": gfmc
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.count = d.count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const d2 = LocalStorageManager.getItem(keyStr);
|
|
|
+ let count = d2.count;
|
|
|
+ console.log('zh:logEventForRod_complete_N count = ' + count);
|
|
|
+ if (count % 5 == 0) {
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('rod_complete_' + d2, reqStr);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ logEventForRod_win() {
|
|
|
+ console.log('zh:logEventForRod_win,胜利');
|
|
|
+ let gfmsIdx = xGame.common.curPlayerSkillType;
|
|
|
+ console.log('zh:logEventForRod_win 选择的技能=' + gfmsIdx);
|
|
|
+ let gfmc = 'Skyfall Shot';
|
|
|
+ if (gfmsIdx == 0) {
|
|
|
+ gfmc = 'Skyfall Shot';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 1) {
|
|
|
+ gfmc = 'Surging break';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 2) {
|
|
|
+ gfmc = 'Frost Lock';
|
|
|
+ }
|
|
|
+ let level = DataMgr.getBigSkillByIndex(gfmsIdx);
|
|
|
+ console.log('zh:logEventForRod_win level = ' + level);
|
|
|
+ let keyStr = 'sjmd_rod_win_' + gfmsIdx;
|
|
|
+ let jsonStr = {
|
|
|
+ "count": 1,
|
|
|
+ "name": gfmc + ' Lev' + level
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.count = d.count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('rod_win', reqStr);
|
|
|
+ }
|
|
|
+ logEventForClassic_win() {
|
|
|
+ console.log('zh:logEventForClassic_win,胜利');
|
|
|
+ let rtype = xGame.common.classicRoomType;
|
|
|
+ let msmc = '';
|
|
|
+ if (rtype == 1) {
|
|
|
+ msmc = 'beginner';
|
|
|
+ }
|
|
|
+ if (rtype == 2) {
|
|
|
+ msmc = 'expert';
|
|
|
+ }
|
|
|
+ if (rtype == 3) {
|
|
|
+ msmc = 'master';
|
|
|
+ }
|
|
|
+ let keyStr = 'sjmd_classic_win_' + rtype;
|
|
|
+ let jsonStr = {
|
|
|
+ "difficulty": msmc,
|
|
|
+ "classic_count": 1,
|
|
|
+ "difficulty_count": 1
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.classic_count = d.classic_count + 1;
|
|
|
+ jsonStr.difficulty_count = d.difficulty_count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('classic_win', reqStr);
|
|
|
+ }
|
|
|
updatePlaceBallBtn() {
|
|
|
this.ui.leftBtn.c1.selectedIndex = 5;
|
|
|
if (this.success) {
|
|
@@ -7193,13 +7371,6 @@
|
|
|
xGame.soundMgr.playSound("s_win");
|
|
|
xGame.common.showGirlTalkPop(8, this.ui.talkNode, this.ui.talkNode.womanTxt);
|
|
|
this.diyGameDataUtilForGameWin();
|
|
|
- let level = xGame.common.placeBallCurLevel;
|
|
|
- if (level > 59) {
|
|
|
- this.logEventForChallenge_level_complete(level);
|
|
|
- }
|
|
|
- else {
|
|
|
- this.logEventForChallenge_level_N(level);
|
|
|
- }
|
|
|
}
|
|
|
else {
|
|
|
JSBridgeUtils.instance.showInternAd('gameend_faill');
|
|
@@ -18983,12 +19154,16 @@
|
|
|
xGame.uiMgr.Show(UIAddCoin$1);
|
|
|
});
|
|
|
}
|
|
|
+ else {
|
|
|
+ this.logEventForClassic_win();
|
|
|
+ }
|
|
|
this.ui.isGetAward.visible = false;
|
|
|
this.ui.leftBtn.c1.selectedIndex = 3;
|
|
|
this.ui.rightBtn.c1.selectedIndex = 0;
|
|
|
this.moneyNode.ui.c1.selectedIndex = 1;
|
|
|
break;
|
|
|
case GameMode.bigMove:
|
|
|
+ console.log('zh:招法模式 aaaaaa bigMove');
|
|
|
this.ui.c1.selectedIndex = this.success ? 0 : 1;
|
|
|
this.ui.coinNode.visible = this.success;
|
|
|
if (xGame.common.gameMode == GameMode.bigMove) {
|
|
@@ -19000,11 +19175,15 @@
|
|
|
DataMgr.setSkillSuccessTimes(0, false);
|
|
|
}
|
|
|
}
|
|
|
+ this.logEventForRod_complete_N();
|
|
|
if (!this.success) {
|
|
|
Laya.timer.once(500, this, () => {
|
|
|
xGame.uiMgr.Show(UIAddCoin$1);
|
|
|
});
|
|
|
}
|
|
|
+ else {
|
|
|
+ this.logEventForRod_win();
|
|
|
+ }
|
|
|
this.ui.isGetAward.visible = false;
|
|
|
this.ui.leftBtn.c1.selectedIndex = 3;
|
|
|
this.ui.rightBtn.c1.selectedIndex = 0;
|
|
@@ -19019,6 +19198,13 @@
|
|
|
else {
|
|
|
this.ui.c1.selectedIndex = 3;
|
|
|
}
|
|
|
+ let level = xGame.common.placeBallCurLevel;
|
|
|
+ if (level > 59) {
|
|
|
+ this.logEventForChallenge_level_complete(level);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.logEventForChallenge_level_N(level);
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
this.ui.c1.selectedIndex = 4;
|
|
@@ -19040,6 +19226,105 @@
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ logEventForRod_complete_N() {
|
|
|
+ let gfmsIdx = xGame.common.curPlayerSkillType;
|
|
|
+ console.log('zh:logEventForRod_complete_N 选择的技能=' + gfmsIdx);
|
|
|
+ let gfmc = 'Skyfall Shot';
|
|
|
+ if (gfmsIdx == 0) {
|
|
|
+ gfmc = 'Skyfall Shot';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 1) {
|
|
|
+ gfmc = 'Surging break';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 2) {
|
|
|
+ gfmc = 'Frost Lock';
|
|
|
+ }
|
|
|
+ let level = DataMgr.getBigSkillByIndex(gfmsIdx);
|
|
|
+ console.log('zh:logEventForRod_complete_N level = ' + level);
|
|
|
+ let keyStr = 'sjmd_rod_start_' + gfmsIdx;
|
|
|
+ let jsonStr = {
|
|
|
+ "count": 1,
|
|
|
+ "name": gfmc
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.count = d.count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const d2 = LocalStorageManager.getItem(keyStr);
|
|
|
+ let count = d2.count;
|
|
|
+ console.log('zh:logEventForRod_complete_N count = ' + count);
|
|
|
+ if (count % 5 == 0) {
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('rod_complete_' + d2, reqStr);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ logEventForRod_win() {
|
|
|
+ console.log('zh:logEventForRod_win,胜利');
|
|
|
+ let gfmsIdx = xGame.common.curPlayerSkillType;
|
|
|
+ console.log('zh:logEventForRod_win 选择的技能=' + gfmsIdx);
|
|
|
+ let gfmc = 'Skyfall Shot';
|
|
|
+ if (gfmsIdx == 0) {
|
|
|
+ gfmc = 'Skyfall Shot';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 1) {
|
|
|
+ gfmc = 'Surging break';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 2) {
|
|
|
+ gfmc = 'Frost Lock';
|
|
|
+ }
|
|
|
+ let level = DataMgr.getBigSkillByIndex(gfmsIdx);
|
|
|
+ console.log('zh:logEventForRod_win level = ' + level);
|
|
|
+ let keyStr = 'sjmd_rod_win_' + gfmsIdx;
|
|
|
+ let jsonStr = {
|
|
|
+ "count": 1,
|
|
|
+ "name": gfmc + ' Lev' + level
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.count = d.count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('rod_win', reqStr);
|
|
|
+ }
|
|
|
+ logEventForClassic_win() {
|
|
|
+ console.log('zh:logEventForClassic_win,胜利');
|
|
|
+ let rtype = xGame.common.classicRoomType;
|
|
|
+ let msmc = '';
|
|
|
+ if (rtype == 1) {
|
|
|
+ msmc = 'beginner';
|
|
|
+ }
|
|
|
+ if (rtype == 2) {
|
|
|
+ msmc = 'expert';
|
|
|
+ }
|
|
|
+ if (rtype == 3) {
|
|
|
+ msmc = 'master';
|
|
|
+ }
|
|
|
+ let keyStr = 'sjmd_classic_win_' + rtype;
|
|
|
+ let jsonStr = {
|
|
|
+ "difficulty": msmc,
|
|
|
+ "classic_count": 1,
|
|
|
+ "difficulty_count": 1
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.classic_count = d.classic_count + 1;
|
|
|
+ jsonStr.difficulty_count = d.difficulty_count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('classic_win', reqStr);
|
|
|
+ }
|
|
|
updatePlaceBallBtn() {
|
|
|
this.ui.leftBtn.c1.selectedIndex = 5;
|
|
|
if (this.success) {
|
|
@@ -19135,13 +19420,6 @@
|
|
|
xGame.soundMgr.playSound("s_win");
|
|
|
xGame.common.showGirlTalkPop(8, this.ui.talkNode, this.ui.talkNode.womanTxt);
|
|
|
this.diyGameDataUtilForGameWin();
|
|
|
- let level = xGame.common.placeBallCurLevel;
|
|
|
- if (level > 59) {
|
|
|
- this.logEventForChallenge_level_complete(level);
|
|
|
- }
|
|
|
- else {
|
|
|
- this.logEventForChallenge_level_N(level);
|
|
|
- }
|
|
|
}
|
|
|
else {
|
|
|
JSBridgeUtils.instance.showInternAd('gameend_faill');
|
|
@@ -19957,6 +20235,7 @@
|
|
|
xGame.common.upSkillLevel = true;
|
|
|
}
|
|
|
startGame() {
|
|
|
+ console.log('zh:rod skill startgame');
|
|
|
if (this.data.index == 3) {
|
|
|
alert('Coming soon!');
|
|
|
return;
|
|
@@ -19976,6 +20255,7 @@
|
|
|
xGame.common.curPlayerSkillType = this.index;
|
|
|
if (guide == 0)
|
|
|
xGame.common.curPlayerSkillType = 0;
|
|
|
+ console.log('zh: skilldisplay 1');
|
|
|
xGame.uiMgr.Show(UIGame$1);
|
|
|
xGame.uiMgr.Hide(UIMain$1);
|
|
|
xGame.uiMgr.Show(UIMatching$1, () => {
|
|
@@ -19983,12 +20263,43 @@
|
|
|
xGame.common.gameUI.startGame();
|
|
|
xGame.uiMgr.Hide(UISkill$1);
|
|
|
});
|
|
|
+ this.logEventForRod_start();
|
|
|
}
|
|
|
else {
|
|
|
+ console.log('zh: skilldisplay 2');
|
|
|
xGame.uiMgr.Show(UIAddProp$1, 0);
|
|
|
Moyu.sendDataEvent("AddCoinVideo");
|
|
|
}
|
|
|
}
|
|
|
+ logEventForRod_start() {
|
|
|
+ let gfmsIdx = xGame.common.curPlayerSkillType;
|
|
|
+ console.log('zh:选择的技能=' + gfmsIdx);
|
|
|
+ let gfmc = 'Skyfall Shot';
|
|
|
+ if (gfmsIdx == 0) {
|
|
|
+ gfmc = 'Skyfall Shot';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 1) {
|
|
|
+ gfmc = 'Surging break';
|
|
|
+ }
|
|
|
+ if (gfmsIdx == 2) {
|
|
|
+ gfmc = 'Frost Lock';
|
|
|
+ }
|
|
|
+ let keyStr = 'sjmd_rod_start_' + gfmsIdx;
|
|
|
+ let jsonStr = {
|
|
|
+ "count": 1,
|
|
|
+ "name": gfmc
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.count = d.count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('rod_start', reqStr);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class UISkill$1 extends UIBase {
|
|
@@ -21369,6 +21680,7 @@
|
|
|
Laya.timer.once(200, this, () => {
|
|
|
this.callback && this.callback();
|
|
|
});
|
|
|
+ this.logEventForClassic_start();
|
|
|
}
|
|
|
else {
|
|
|
Moyu.sendDataEvent("AddCoinVideo");
|
|
@@ -21379,6 +21691,36 @@
|
|
|
let rand = this.peopleOffest[index];
|
|
|
return this.peopleArr[index] + xGame.common.randomNum(-rand, rand);
|
|
|
}
|
|
|
+ logEventForClassic_start() {
|
|
|
+ let rtype = xGame.common.classicRoomType;
|
|
|
+ let msmc = '';
|
|
|
+ if (rtype == 1) {
|
|
|
+ msmc = 'beginner';
|
|
|
+ }
|
|
|
+ if (rtype == 2) {
|
|
|
+ msmc = 'expert';
|
|
|
+ }
|
|
|
+ if (rtype == 3) {
|
|
|
+ msmc = 'master';
|
|
|
+ }
|
|
|
+ let keyStr = 'sjmd_classic_start_' + rtype;
|
|
|
+ let jsonStr = {
|
|
|
+ "difficulty": msmc,
|
|
|
+ "classic_count": 1,
|
|
|
+ "difficulty_count": 1
|
|
|
+ };
|
|
|
+ if (LocalStorageManager.hasJosnKey(keyStr)) {
|
|
|
+ const d = LocalStorageManager.getItem(keyStr);
|
|
|
+ jsonStr.classic_count = d.classic_count + 1;
|
|
|
+ jsonStr.difficulty_count = d.difficulty_count + 1;
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ }
|
|
|
+ const reqStr = JSON.stringify(jsonStr);
|
|
|
+ JSBridgeUtils.instance.logEventForAdHaveParams('classic_start', reqStr);
|
|
|
+ }
|
|
|
}
|
|
|
UIModeSelection$1.uiName = "UIModeSelection";
|
|
|
|