Bladeren bron

【优化】完善打点问题

mojunshou 8 maanden geleden
bovenliggende
commit
d7f5f8c382

+ 2 - 1
assets/script/game/common/manager/ADHandler.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-11 10:14:44
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-25 18:38:23
+ * @LastEditTime: 2025-04-25 19:12:53
  * @Description: 
  */
 // ADHandler.ts
@@ -36,6 +36,7 @@ export class ADHandler {
     };
 
     private buildAdParam(id: string): { method: string, param: any } {
+        console.log("播放的广告ID>>>>>>>>>>>>>", id)
         const param: any = {
             funcId: id,
             callback: {

+ 4 - 5
assets/script/game/common/manager/ProtocolEvent.ts

@@ -2,13 +2,14 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-07 10:17:16
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-25 18:42:56
+ * @LastEditTime: 2025-04-25 19:35:54
  * @Description: 消息定义
  */
 
-// const server_url = "http://192.168.10.103:8880";
+const server_url = "http://192.168.10.103:8880";
 // https://central-test.atmob.com
-const server_url = "https://central-test.atmob.com";
+
+// const server_url = "https://central-test.atmob.com";
 export enum ProtocolEvent {
     /**微信登录*/
     WechatLogin = server_url + "/project/playlet/v1/user/login",
@@ -48,8 +49,6 @@ export enum ProtocolEvent {
     GetWithdrawRecord = server_url + "/project/playlet/v1/withdraw/log/page",
     /**提现返利信息*/
     GetWithdrawReward = server_url + "/project/playlet/v1/withdraw/rebate",
-
-
     /**红包提现页信息*/
     GetHbWithdrawInfo = server_url + "/project/playlet/v3/withdraw/view/detail",
     /**福利点提现*/

+ 4 - 1
assets/script/game/view/EliminateViewComp.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-03-20 15:01:09
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-25 18:39:45
+ * @LastEditTime: 2025-04-25 19:54:59
  * @Description: 消除游戏主场景
  */
 import { _decorator, Button, Color, EventTouch, instantiate, JsonAsset, v3, Label, Node, Prefab, randomRangeInt, Sprite, tween, UITransform, Vec2, Vec3, Widget } from "cc";
@@ -266,6 +266,8 @@ export class EliminateViewComp extends CCComp {
         this.updateWelfarePoint();
         DCHandler.inst.reportData(3000005);
         oops.audio.playMusicLoop("common/audios/bgm");
+        DCHandler.inst.reportData(3000504, smc.account.AccountModel.curLevel);
+
     }
 
 
@@ -1925,6 +1927,7 @@ export class EliminateViewComp extends CCComp {
         if (this.score >= this.targetScore) {
             this.gameState = GameState.GAME_PASS;
             //弹出通关奖励界面
+            DCHandler.inst.reportData(3000505, smc.account.AccountModel.curLevel);
             if (DeviceUtil.isNative && DeviceUtil.isAndroid) {
                 ServerHandler.inst.getGameAwardInfo();
                 //如果

+ 3 - 3
assets/script/game/view/RedPackeWithdrawalViewComp.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-03-20 17:53:50
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-25 09:51:12
+ * @LastEditTime: 2025-04-25 19:53:14
  * @Description: 红包提现
  */
 import { _decorator, Label, Node } from "cc";
@@ -117,10 +117,10 @@ export class RedPackeWithdrawalViewComp extends CCVMParentComp {
         //全部提现
         if (smc.game.GameModel.wxCash >= 0.1) {
             ServerHandler.inst.HbReward();
-            DCHandler.inst.reportData(3000900, 1001);
+            DCHandler.inst.reportData(3000903, 1001);
         } else {
             oops.gui.toast("微信官方限制大于0.1元,才能提现~");
-            DCHandler.inst.reportData(3000900, 1002);
+            DCHandler.inst.reportData(3000903, 1002);
         }
     }