Explorar el Código

修复视频次数打点bug

zouyong hace 5 años
padre
commit
13c5eb47be

+ 1 - 1
assets/script/game/data/AdData.ts

@@ -116,7 +116,7 @@ export class AdData {
             return;
             return;
         }
         }
         let times = gData.gameData.getProp(GameProp.videoTimes);
         let times = gData.gameData.getProp(GameProp.videoTimes);
-        gData.gameData.setProp(GameProp.videoTimes, times++);
+        gData.gameData.setProp(GameProp.videoTimes, ++times);
         if (times < 5) {
         if (times < 5) {
             mk.data.sendXYEvent("ad_" + times, "第" + times + "次看视频");
             mk.data.sendXYEvent("ad_" + times, "第" + times + "次看视频");
         }
         }

+ 1 - 1
assets/script/game/data/HttpData.ts

@@ -5,7 +5,7 @@
 export class HttpData {
 export class HttpData {
 
 
     /** 服务器类型 0测试服 1正式服 2李扬服 3悍国服 */
     /** 服务器类型 0测试服 1正式服 2李扬服 3悍国服 */
-    public serverType: number = 0;
+    public serverType: number = 1;
 
 
     public getServerUrl(): string {
     public getServerUrl(): string {
         switch (this.serverType) {
         switch (this.serverType) {

+ 5 - 5
assets/script/game/module/redBagCash/RedBagCashItem.ts

@@ -35,7 +35,7 @@ export default class RedBagCashItem extends cc.Component {
      * 初始化数据
      * 初始化数据
      */
      */
     public async setItemData(item_data) {
     public async setItemData(item_data) {
-        if(this.item_data == null && item_data.index == 1){
+        if (this.item_data == null && item_data.index == 1) {
             mk.event.register("event_guide", this.clickGuide.bind, this);
             mk.event.register("event_guide", this.clickGuide.bind, this);
         }
         }
         await this.initStyle(item_data);
         await this.initStyle(item_data);
@@ -85,17 +85,17 @@ export default class RedBagCashItem extends cc.Component {
             mk.tip.pop('请按顺序提现');
             mk.tip.pop('请按顺序提现');
             return;
             return;
         }
         }
-        mk.data.sendDataEvent(DataEventId.commonWithDrawal,"常规提现-红包币提现成功");
+        mk.data.sendDataEvent(DataEventId.commonWithDrawal, "常规提现-红包币提现成功");
         let times = gData.gameData.getProp(GameProp.cashTimes);
         let times = gData.gameData.getProp(GameProp.cashTimes);
-        gData.gameData.setProp(GameProp.cashTimes, times++);
+        gData.gameData.setProp(GameProp.cashTimes, ++times);
         if (times < 4) {
         if (times < 4) {
             mk.data.sendXYEvent("cash_" + times, "第" + times + "次提现");
             mk.data.sendXYEvent("cash_" + times, "第" + times + "次提现");
         }
         }
         gData.redBagCash.cashOP();
         gData.redBagCash.cashOP();
     }
     }
 
 
-    onDestroy(){
-        mk.event.remove("event_guide",this.clickGuide,this);
+    onDestroy() {
+        mk.event.remove("event_guide", this.clickGuide, this);
     }
     }
 
 
 }
 }