Просмотр исходного кода

版本升级到和主线一致
topon保持原来不变

kaka 4 лет назад
Родитель
Сommit
01873b0451
44 измененных файлов с 795 добавлено и 177 удалено
  1. 2 1
      assets/resources/data/rule_data.json
  2. 0 0
      assets/resources/module/login/hot/project.manifest
  3. 1 1
      assets/resources/module/login/hot/version.manifest
  4. 1 1
      assets/resources/module/moreGame/moreGamePopNode.prefab
  5. 6 19
      assets/resources/module/reward/rewardLuck.prefab
  6. 121 7
      assets/resources/module/setting/setting.prefab
  7. 2 1
      assets/script/before/GamePlay.ts
  8. 55 3
      assets/script/game/data/AdData.ts
  9. 25 0
      assets/script/game/data/GameData.ts
  10. 1 1
      assets/script/game/data/LoginData.ts
  11. 1 1
      assets/script/game/data/module/MoreGameData.ts
  12. 2 5
      assets/script/game/module/blessingBag/BlessingBag.ts
  13. 7 1
      assets/script/game/module/cashPro/CashPro.ts
  14. 9 7
      assets/script/game/module/login/Login.ts
  15. 9 8
      assets/script/game/module/receiptNotice/ReceiptNotice.ts
  16. 8 2
      assets/script/game/module/redCode/RedCode.ts
  17. 13 3
      assets/script/game/module/reward/Reward.ts
  18. 10 3
      assets/script/game/module/setting/Setting.ts
  19. 2 3
      assets/script/game/module/sign/Sign.ts
  20. 52 34
      assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitial.ts
  21. 4 1
      assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitialJS.js
  22. 3 1
      assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATRewardVideo.ts
  23. 6 3
      assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr.ts
  24. 24 7
      assets/script/mk/system/AdSystem.ts
  25. 20 0
      assets/script/mk/system/DataSystem.ts
  26. 6 12
      assets/script/mk/system/GuideSystem.ts
  27. 35 0
      assets/script/mk/system/JsbSystem.ts
  28. BIN
      build/jsb-link/assets/main/index.jsc
  29. 0 0
      build/jsb-link/assets/resources/config.json
  30. 0 0
      build/jsb-link/assets/resources/import/2f/2f63e38a-f6a2-47c7-bb1d-2bc6a29d26bb.json
  31. 0 0
      build/jsb-link/assets/resources/import/cc/cc34b721-8635-450d-a8c7-955c7db376ac.json
  32. 0 0
      build/jsb-link/assets/resources/import/cd/cd71cb27-f8c9-4284-b18c-9aab7aa926a9.json
  33. 0 0
      build/jsb-link/assets/resources/import/eb/eb3877a0-0566-4cd8-bb4e-fe5969e6f0e2.json
  34. 1 1
      build/jsb-link/assets/resources/native/9e/9ed98385-f23f-41b7-a2bc-27a1d4ad9fd6.manifest
  35. 0 0
      build/jsb-link/assets/resources/native/a8/a81eb395-718d-4f3b-958c-cb871f7dd5fa.manifest
  36. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser
  37. 1 1
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/gradle.properties
  38. 21 0
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr.java
  39. 67 0
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/thirdSdk/thinkingdata/TDSDKMgr.java
  40. 276 46
      build/jsb-link/js backups (useful for debugging)/main.index.js
  41. 3 3
      packages-hot-update/cfg.json
  42. 0 0
      packages-hot-update/manifest/project.manifest
  43. 1 1
      packages-hot-update/manifest/version.manifest
  44. BIN
      packages-hot-update/versions/ver_1_0.1.zip

+ 2 - 1
assets/resources/data/rule_data.json

@@ -258,6 +258,7 @@
 		"4、如用户对轻松连连消作弊行为判定及处罚等行为存有异议,应及时通过在线客服或发送邮件方式向轻松连连消申诉并提交充足证据证明其符合活动规则且不存在作弊或其他违反规则或用户协议的行为。最终用户是否构成作弊应以轻松连连消认定为准。 ",
 		"5、如用户发现软件存在漏洞,有义务向车神驾临及时通报,我们将视情况予以奖励。 ",
 		"",
-		"                开发者公司: 苏州白羊座信息科技有限公司"
+		"                开发者公司: 苏州白羊座信息科技有限公司",
+                                "                政策发布时间: 2021年8月5日"
 	]
 }

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
assets/resources/module/login/hot/project.manifest


+ 1 - 1
assets/resources/module/login/hot/version.manifest

@@ -1 +1 @@
-{"version":"1.0.0","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/version.manifest"}
+{"version":"1.0.1","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/version.manifest"}

+ 1 - 1
assets/resources/module/moreGame/moreGamePopNode.prefab

@@ -765,7 +765,7 @@
     "design_block_node": {
       "__id__": 2
     },
-    "bClickClose": true,
+    "bClickClose": false,
     "onComplete": [],
     "_id": ""
   },

+ 6 - 19
assets/resources/module/reward/rewardLuck.prefab

@@ -27,6 +27,9 @@
     "_active": true,
     "_components": [
       {
+        "__id__": 127
+      },
+      {
         "__id__": 128
       },
       {
@@ -34,13 +37,10 @@
       },
       {
         "__id__": 130
-      },
-      {
-        "__id__": 131
       }
     ],
     "_prefab": {
-      "__id__": 132
+      "__id__": 131
     },
     "_opacity": 255,
     "_color": {
@@ -4352,11 +4352,11 @@
         "__id__": 123
       },
       {
-        "__id__": 126
+        "__id__": 125
       }
     ],
     "_prefab": {
-      "__id__": 127
+      "__id__": 126
     },
     "_opacity": 255,
     "_color": {
@@ -4452,9 +4452,6 @@
     "onComplete": [
       {
         "__id__": 124
-      },
-      {
-        "__id__": 125
       }
     ],
     "_id": ""
@@ -4466,16 +4463,6 @@
     },
     "component": "",
     "_componentId": "43f3akkA71HA76UhTj/R19X",
-    "handler": "onClickClose",
-    "customEventData": ""
-  },
-  {
-    "__type__": "cc.ClickEvent",
-    "target": {
-      "__id__": 1
-    },
-    "component": "",
-    "_componentId": "43f3akkA71HA76UhTj/R19X",
     "handler": "clickGetReward",
     "customEventData": ""
   },

+ 121 - 7
assets/resources/module/setting/setting.prefab

@@ -24,20 +24,20 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 90
+        "__id__": 93
       },
       {
-        "__id__": 91
+        "__id__": 94
       },
       {
-        "__id__": 92
+        "__id__": 95
       },
       {
-        "__id__": 93
+        "__id__": 96
       }
     ],
     "_prefab": {
-      "__id__": 94
+      "__id__": 97
     },
     "_opacity": 255,
     "_color": {
@@ -156,16 +156,19 @@
       },
       {
         "__id__": 85
+      },
+      {
+        "__id__": 88
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 88
+        "__id__": 91
       }
     ],
     "_prefab": {
-      "__id__": 89
+      "__id__": 92
     },
     "_opacity": 255,
     "_color": {
@@ -3199,6 +3202,114 @@
     "sync": false
   },
   {
+    "__type__": "cc.Node",
+    "_name": "labGroup",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 2
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 89
+      }
+    ],
+    "_prefab": {
+      "__id__": 90
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 182.25,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        175.59,
+        170.133,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 88
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "分组号:0",
+    "_N$string": "分组号:0",
+    "_fontSize": 40,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_batchAsBitmap": false,
+    "_styleFlags": 0,
+    "_underlineHeight": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_N$cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "2f63e38a-f6a2-47c7-bb1d-2bc6a29d26bb"
+    },
+    "fileId": "53OEEqFR9GZZ1rQajvPW2R",
+    "sync": false
+  },
+  {
     "__type__": "cc.Widget",
     "_name": "",
     "_objFlags": 0,
@@ -3264,6 +3375,9 @@
     "lbl_version": {
       "__id__": 86
     },
+    "lbl_group": {
+      "__id__": 89
+    },
     "_id": ""
   },
   {

+ 2 - 1
assets/script/before/GamePlay.ts

@@ -1066,7 +1066,8 @@ export default class GamePlay extends cc.Component {
 
     /**游戏结束 */
     gameOver() {
-        mk.ui.openPanel("game/prefab/uiPanel/GameOverUI")
+        mk.data.setTAEventUser(1, 'video_play_time', 1);
+        mk.ui.openPanel("game/prefab/uiPanel/GameOverUI");
     }
 
     checkBonusNum(cleanCellItemNum: number) {

+ 55 - 3
assets/script/game/data/AdData.ts

@@ -20,9 +20,6 @@ export class AdData {
     public precision = '';
     public ecpm_level = '';
 
-    /** 广告类型(1:激励视频、2:插屏、3:信息流) */
-    public adType: number = 1;
-
     /** 视频类型 */
     public ad_subType: AdFun;
 
@@ -38,6 +35,9 @@ export class AdData {
 
     private adMap: Map<number, Data>
 
+    /** 全屏插屏弹出规则 */
+    private fullInterShowStr = ''
+
     public init() {
         this.adMap = new Map<number, Data>();
         this.adMap.set(AdFun.bubble, gData.reward)
@@ -127,6 +127,10 @@ export class AdData {
         }
     }
 
+    /** 更新其他广告次数
+     * @param type 1:激励视频完播、2:插屏展示、3:信息流展示、 4:激励视频展⽰、5:激励视频加载失败、6:开屏展示、7:banner展示、
+     * 8:插屏-全屏视频 完播、9:插屏-全屏视频 展示、10:插屏-全屏视频 加载失败、11:插屏加载失败、12:信息流加载失败、13:开屏加载失败、14:banner加载失败
+     */
     public updateADLog(type, placementId, data = null) {
         let sData = null
         if (!data) {
@@ -178,6 +182,54 @@ export class AdData {
 
         mk.http.sendData('updateADLog', sData);
     }
+
+    /** 设置关闭红包弹出全屏插屏序列 */
+    setFullInterShowStr() {
+        let fullInterShowStrArr = gData.gameData.configs.GlobalCfg.fullInterShowStrArr.split(';');
+        for (var i = 0; i < fullInterShowStrArr.length; i++) {
+            let tempArr = fullInterShowStrArr[i].split(',');
+            if (gData.gameData.adShowConfig.average_ecpm <= tempArr[1]) {
+                this.fullInterShowStr = tempArr[2];
+                break;
+            }
+        }
+    }
+
+    /** 检查是否显示全屏插屏
+     * @type 不同情况弹出类型 1:提现结束判断ecpm低于一定值弹出  2:关闭红包界面不观看激励视频有概率拉起全屏广告
+     */
+    checkShowFullInter(type) {
+        //全屏广告开关
+        if (gData.gameData.configs.GlobalCfg.popFullInter != "1") {
+            return
+        }
+
+        if (type == 1) {
+            if (gData.gameData.adShowConfig.average_ecpm <= gData.gameData.configs.GlobalCfg.popFullEcpmAfterCash) {
+                mk.ad.showInterAd(1);
+            }
+        }
+        else if (type == 2) {
+            if (this.fullInterShowStr) {
+                let popFullIndex = mk.storage.getStorage('popFullIndex');
+                if (popFullIndex == null) {
+                    popFullIndex = 0;
+                }
+                else {
+                    popFullIndex++;
+                }
+                mk.storage.setStorage('popFullIndex', popFullIndex);
+
+                let index = popFullIndex % this.fullInterShowStr.length;
+                mk.console.log('checkShowFullInter  this.fullInterShowStr  ', this.fullInterShowStr);
+                mk.console.log('checkShowFullInter  index', index);
+                if (this.fullInterShowStr[index] == '1') {
+                    mk.console.log('checkShowFullInter showInterAd');
+                    mk.ad.showInterAd(1);
+                }
+            }
+        }
+    }
 }
 
 /**

+ 25 - 0
assets/script/game/data/GameData.ts

@@ -88,6 +88,8 @@ export class GameData {
         this.adShowConfig = response.data;
         mk.console.logSingle("user/adShowConfig", response.data);
 
+        gData.adData.setFullInterShowStr();
+
         this.dataFinish = true;
     }
 
@@ -118,7 +120,26 @@ export class GameData {
         this.gameData.userTuCaoInfo = res_data.userTuCaoInfo;
         this.gameData.versioncfg = res_data.versioncfg;
         this.gameData.isFirstRedMoney = res_data.isFirstRedMoney;
+        if (res_data.groupCode) {
+            this.gameData.groupCode = res_data.groupCode;
+        }
+        console.log('ABTest ', res_data.groupCode);
         gData.adData.watchNumToday = res_data.dayVideoTimesForRedMoney == null ? 0 : res_data.dayVideoTimesForRedMoney;
+
+        if (gData.loginData.isFirstIn) {
+            gData.loginData.isFirstIn = false;
+            mk.data.sendDataEvent('ABTest', `触发${this.gameData.groupCode}方案`);
+
+            //星云uid
+            mk.data.setTAEventUserStr(0, 'xy_uid', gData.loginData.uin);
+            //注册时版本号
+            mk.data.setTAEventUserStr(0, 'regtime_app_id', gData.appData.appVersion);
+        }
+
+        //当前版本号
+        mk.data.setTAEventUserStr(0, 'now_app_id', gData.appData.appVersion);
+        //渠道号
+        mk.data.setTAEventUserStr(0, 'channel_id', gData.appData.umengChannel);
     }
 
     /**
@@ -325,6 +346,8 @@ class PlayerProp {
         this._redMoney = value;
         gData.gameData.init_coin = true;
         gData.gameData.init_red_point = true;
+        //当前红包币
+        mk.data.setTAEventUser(0, 'red_money_num', this._redMoney);
     }
     get redMoney(): number {
         return this._redMoney;
@@ -356,6 +379,8 @@ class PlayerProp {
     changePropNum = 0;
     /** 能免费领红包 1 表示是新人第一次产出红包币,不用看视频*/
     isFirstRedMoney = 0;
+    /** ABTest分组id */
+    groupCode = 0;
 }
 
 /**

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

@@ -23,7 +23,7 @@ export class LoginData {
 
     public loginTicket: string = '';
 
-    public isFirstIn: boolean;
+    public isFirstIn: boolean = false;
 
     public isNew: boolean;
 

+ 1 - 1
assets/script/game/data/module/MoreGameData.ts

@@ -193,7 +193,7 @@ export class MoreGameData extends Data {
 
     /** 弹出互推红包弹窗 */
     popMoreGamePopNode() {
-        if (mk.guide.isGuiding || mk.ui.getCurOnPanel('reward')) {
+        if (mk.guide.isGuiding() || mk.ui.getCurOnPanel('reward')) {
             return;
         }
 

+ 2 - 5
assets/script/game/module/blessingBag/BlessingBag.ts

@@ -230,7 +230,7 @@ export default class BlessingBag extends cc.Component {
 
 
     Click_AdProgressBtn() {
-      
+
         mk.audio.playEffect("button");
         if (!gData.loginData.isAuth) {
             JsbSystem.WxAuth();
@@ -312,7 +312,6 @@ export default class BlessingBag extends cc.Component {
         this.canOpen = false;
 
         if (this.rbPanelType == 1) {
-           
             gData.cashPro.openCashPro(cashProType.blessing_bigCash, gData.blessingBag.bigRbNum)
         } else {
             //弹确认提现界面
@@ -325,10 +324,8 @@ export default class BlessingBag extends cc.Component {
                 this.aniBtnAd.node.active = false;
                 this.rbOpenBtn.active = true;
                 this.nodeRb.active = false;
-
                 gData.blessingBag.HttpCashTask();
-                // gData.cashPro.openCashPro(cashProType.blessing_taskCash, gData.blessingBag.taskRbNum)
-
+                
                 this.canOpen = true;
             }, 1000);
         }

+ 7 - 1
assets/script/game/module/cashPro/CashPro.ts

@@ -85,7 +85,13 @@ export default class CashPro extends cc.Component {
 
     showCashPro() {
         this.cashPro.active = true;
-        mk.tween.move(this.cashPro, 0.3, cc.v2(1000, 0), cc.v2(0, 0), null, 'elasticIn');
+        mk.tween.move(this.cashPro, 0.3, cc.v2(1000, 0), cc.v2(0, 0), () => {
+            gData.adData.checkShowFullInter(1);
+        }, 'elasticIn');
+        //累计成功提现次数
+        mk.data.setTAEventUser(1, 'cash_time', 1);
+        //累计提现金额
+        mk.data.setTAEventUser(1, 'cash_total', this.money);
         this.labMoney.string = `¥${this.money}`
     }
 

+ 9 - 7
assets/script/game/module/login/Login.ts

@@ -23,6 +23,8 @@ export default class Login extends cc.Component {
     /** 热更脚本(onLoad应先于Login) */
     public hotUpdatePanel: HotUpdatePanel = null;
 
+    private hasDeviceBackInit = false;
+
     onLoad() {
         this.setProgress(0);
     }
@@ -44,8 +46,12 @@ export default class Login extends cc.Component {
     }
 
     update() {
-        if (gData.appData.getDeviceInfoCompelete) {
-            gData.appData.getDeviceInfoCompelete = false;
+        if (!gData.appData.getDeviceInfoCompelete) {
+            return
+        }
+
+        if (!this.hasDeviceBackInit) {
+            this.hasDeviceBackInit = true;
             this.getDeviceInfoBack();
         }
 
@@ -83,9 +89,7 @@ export default class Login extends cc.Component {
                 else {
                     mk.ui.openPanel("game/prefab/game");
                     console.log("===[Jsbsystem 显示开屏广告================================")
-                    if (mk.ad.ifShowAd) {
-                        JsbSystem.showSplash();
-                    }
+                    JsbSystem.showSplash();
                 }
 
                 gData.gameData.dataFinish = false;
@@ -163,8 +167,6 @@ export default class Login extends cc.Component {
     public async getForceVersionInfo() {
         if (CC_DEBUG) {
             //测试用配置版本号
-            gData.appData.appId = "wxcf31f0e54f7fefda";
-            gData.appData.version = "1.1.2";
             gData.appData.tfChannel = "1";
             gData.appData.appVersion = "1.2.0";
         }

+ 9 - 8
assets/script/game/module/receiptNotice/ReceiptNotice.ts

@@ -9,25 +9,22 @@ const { ccclass, property } = cc._decorator;
 export default class ReceiptNotice extends cc.Component {
 
     @property({ displayName: 'lbl收款金额', type: cc.Label })
-    private lbl_receipt_rmb: cc.Label = null!;
+    private lbl_receipt_rmb: cc.Label = null;
     @property({ displayName: 'lbl累计提现', type: cc.Label })
-    private lbl_rmb_total: cc.Label = null!;
+    private lbl_rmb_total: cc.Label = null;
     @property({ displayName: 'lbl用户名', type: cc.Label })
-    private lbl_user_name: cc.Label = null!;
-
-
-    // onLoad() {
-
-    // }
+    private lbl_user_name: cc.Label = null;
 
     start() {
         mk.audio.playEffect("receiptNotice");
+
     }
 
     update(dt) {
         if (gData.receiptNotice.init_style) {
             gData.receiptNotice.init_style = false;
             this.initStyle();
+            gData.adData.checkShowFullInter(1);
         }
     }
 
@@ -38,5 +35,9 @@ export default class ReceiptNotice extends cc.Component {
         this.lbl_receipt_rmb.string = '¥' + (gData.receiptNotice.receip_rmb / 100).toFixed(2) + '元';
         this.lbl_rmb_total.string = '¥' + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + '元';
         this.lbl_user_name.string = gData.wechatData.nickName || '';
+        //累计成功提现次数
+        mk.data.setTAEventUser(1, 'cash_time', 1);
+        //累计提现金额
+        mk.data.setTAEventUser(1, 'cash_total', gData.receiptNotice.receip_rmb / 100);
     }
 }

+ 8 - 2
assets/script/game/module/redCode/RedCode.ts

@@ -46,6 +46,7 @@ export default class RedCode extends cc.Component {
     update() {
         if (gData.redCodeData.init_data) {
             this.init(gData.redCodeData.money, gData.redCodeData.code);
+            gData.adData.checkShowFullInter(1);
         }
     }
 
@@ -57,6 +58,11 @@ export default class RedCode extends cc.Component {
         this.labMoney.string = `${money.toFixed(2)}元`
         this.code = code
         this.labRedCode.string = `提现红包码:${this.code}`
+
+        //累计成功提现次数
+        mk.data.setTAEventUser(1, 'cash_time', 1);
+        //累计提现金额
+        mk.data.setTAEventUser(1, 'cash_total', money);
     }
 
     /** 点击复制公众号 */
@@ -101,10 +107,10 @@ export default class RedCode extends cc.Component {
     }
 
     onClickClose() {
-        
+
     }
 
-    onDisable(){
+    onDisable() {
         mk.ad.destroyNativeAd();
     }
 }

+ 13 - 3
assets/script/game/module/reward/Reward.ts

@@ -61,8 +61,12 @@ export default class Reward extends cc.Component {
     /** 当前阶段 */
     private cur_stage: number = LidType.none;
 
+    /** 是否看广告 */
+    private hasWatchVideo = false;
+
     onLoad() {
         this.hb_star.active = false;
+        this.hasWatchVideo = false;
         this.lbl_reward_value.string = '0';
         // gData.reward.data = [{ rewardType: 3, rewardNum: 100 }]// 测试数据
     }
@@ -84,6 +88,7 @@ export default class Reward extends cc.Component {
         if (gData.reward.adData) {
             // 展示奖励
             this.watchVideoCall();
+            this.hasWatchVideo = true;
             return;
         }
     }
@@ -244,8 +249,8 @@ export default class Reward extends cc.Component {
         cc.log('获取奖励:', gData.reward.data);
         gData.reward.flyCoinAnim();
         this.onClickClose();
-        if(gData.gameData.getProp(GameProp.videoTimes) == 0){
-            mk.data.sendXYEvent("guide_receive","新手引导领取2500红包币");
+        if (gData.gameData.getProp(GameProp.videoTimes) == 0) {
+            mk.data.sendXYEvent("guide_receive", "新手引导领取2500红包币");
         }
     }
 
@@ -280,7 +285,6 @@ export default class Reward extends cc.Component {
     }
 
     onClickClose() {
-        mk.ad.destoryBanner();
         //如果是关卡消除红包 关闭之后则清除
         if (gData.reward.subType == 2) {
             console.log("清除积分啦啦啦啦啦阿拉拉拉啦--------------------------------", GamePlay.Inst.ifPass)
@@ -302,5 +306,11 @@ export default class Reward extends cc.Component {
         else {
             mk.ad.checkShowInterByChance();
         }
+
+        if (!this.hasWatchVideo) {
+            gData.adData.checkShowFullInter(2);
+        }
+
+        mk.ad.destoryBanner();
     }
 }

+ 10 - 3
assets/script/game/module/setting/Setting.ts

@@ -23,6 +23,8 @@ export default class Setting extends cc.Component {
     img_effect: cc.Sprite = null;
     @property({ type: cc.Label, displayName: "版本号" })
     lbl_version: cc.Label = null;
+    @property({ type: cc.Label, displayName: "分组号" })
+    lbl_group: cc.Label = null;
     // @property({ type: cc.Node, displayName: "协议内容" })
     node_rule: cc.Node = null;
 
@@ -38,7 +40,7 @@ export default class Setting extends cc.Component {
         console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
         console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
         this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);// 14 
-        if (gData.gameData.funOpenData['6'] != "1") {
+        if (gData.gameData.funOpenData['6'] != '1') {
             this.lbl_nickname.string = '';
         }
         else {
@@ -46,6 +48,13 @@ export default class Setting extends cc.Component {
         }
         this.lbl_version.string = gData.appData.appVersion;
 
+        if (mk.console.ifShowLog) {
+            this.lbl_group.string = `分组号:${gData.gameData.gameData.groupCode}`;
+        }
+        else {
+            this.lbl_group.string = ``;
+        }
+
         let music = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
         let effect = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
         this.img_music.spriteFrame = await mk.loader.load(music, cc.SpriteFrame);
@@ -55,8 +64,6 @@ export default class Setting extends cc.Component {
         let result = await mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null);
         this.img_head.spriteFrame = new cc.SpriteFrame(result);
         console.log("=== loadHead:", result);
-
-        // this.img_head.spriteFrame = result;
     }
 
     clickCopy() {

+ 2 - 3
assets/script/game/module/sign/Sign.ts

@@ -97,10 +97,9 @@ export default class Sign extends cc.Component {
     /**
      * 拿奖励
      */
-    private getReward() {
+    private async getReward() {
         // 完成展示
-        gData.sign.signComplete();
-
+        await gData.sign.signComplete();
         const index_old = gData.sign.getItemIndexByCanSign();
         // 指定条目数据刷新
         this.tableview.resetItemData(index_old, gData.sign.list_data[index_old]);

+ 52 - 34
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitial.ts

@@ -13,7 +13,7 @@ export default class ATInterstitial extends zgSingleton {
     private ATInterstitialJS: any;
 
     /** 插屏广告类型 0 插屏 1全屏 */
-    private interAdType: number = 0;
+    private interAdType: number = -1;
     /** 插屏广告状态 */
     private interAdState: InterAdState = 0;
     /** 是否加载完显示 */
@@ -27,6 +27,7 @@ export default class ATInterstitial extends zgSingleton {
 
         if (this.interAdState == InterAdState.Unload) {
             this.loadInter(0);
+            this.loadInter(1);
         }
     }
 
@@ -50,6 +51,29 @@ export default class ATInterstitial extends zgSingleton {
         }
     }
 
+    /**
+     * 检查当前广告类型
+     * @param placementId 当前广告id 
+     * @returns 0 插屏 1 全屏
+     */
+    checkPlacementIDType(placementId) {
+        if (cc.sys.os === cc.sys.OS_IOS) {
+            if (placementId == ATSDKMgr.topon_inter_placementId) {
+                return 0;
+            }
+            else if (placementId == ATSDKMgr.topon_fullinter_placementId) {
+                return 1;
+            }
+        } else if (cc.sys.os === cc.sys.OS_ANDROID) {
+            if (placementId == ATSDKMgr.topon_inter_placementId) {
+                return 0;
+            }
+            else if (placementId == ATSDKMgr.topon_fullinter_placementId) {
+                return 1;
+            }
+        }
+    }
+
     //广告逻辑部分------------------------------------------------------------------------
     /** 检测是否插屏预备好了 */
     hasAdReady() {
@@ -61,23 +85,10 @@ export default class ATInterstitial extends zgSingleton {
      * @param type 0 插屏 1 全屏
      */
     loadInter(type: number, ifLoadShow: boolean = false) {
-
-        this.interAdType = type;
         this.ifLoadShow = ifLoadShow;
 
         this.interAdState = InterAdState.Loading;
         this.ATInterstitialJS.loadInter(type);
-
-        // // console.log('99999999   loadInterPre  ', type)
-        // if (!this.onloadInter) {
-        //     this.onloadInter = true
-        //     // console.log('99999999   loadInter  ', type)
-        //     //FC:UROI事件
-        //     if (GameM.commonData.ifUROI) {
-        //         let eventID = EncryptUtil.randomString(32);
-        //         AdM.sendUROIEvent(eventID, '', GameM.commonData.interPlaceId, "ad_request", "interstitial", 'other', '')
-        //     }
-        // }
     }
 
     /**
@@ -85,13 +96,12 @@ export default class ATInterstitial extends zgSingleton {
      * @param type 0 插屏 1 全屏
      */
     showInter(type: number) {
-
-        this.interAdType = type;
-
-        if (this.interAdState == InterAdState.Show) {
+        if (this.interAdState == InterAdState.Show && type == this.interAdType) {
             //正在显示不重复弹出
+            console.log('当前插屏类型正在展示');
         }
         else {
+            this.interAdType = type;
             if (this.hasAdReady()) {
                 this.interAdState = InterAdState.Show;
                 this.ATInterstitialJS.showInter(type);
@@ -111,29 +121,27 @@ export default class ATInterstitial extends zgSingleton {
 
     //广告回调部分------------------------------------------------------------------------
     onInterstitialAdLoaded(placementId) {
-
         this.interAdState = InterAdState.LoadSuccess;
 
         if (this.ifLoadShow) {
-            this.showInter(this.interAdType);
+            let type = this.checkPlacementIDType(placementId);
+            this.showInter(type);
         }
-
-        // if (GameM.commonData.ifUROI) {
-        //     let eventID = EncryptUtil.randomString(32);
-        //     AdM.sendUROIEvent(eventID, '', placementId, "ad_fill", "interstitial", 'other', '')
-        // }
     }
 
     onInterstitialAdLoadFail(placementId, errorInfo) {
         this.interAdState = InterAdState.LoadFail;
 
-        if (this.interAdType == 1) {
-            mk.tip.pop('拉取全屏视频失败,请稍后再试');
-            gData.adData.updateADLog(10, placementId);
+        let id = 11
+        let type = this.checkPlacementIDType(placementId);
+        if (type == 0) {
+            id = 11
         }
-        else if (this.interAdType == 0) {
-            gData.adData.updateADLog(11, placementId);
+        else if (type == 1) {
+            // mk.tip.pop('拉取全屏视频失败,请稍后再试');
+            id = 10
         }
+        gData.adData.updateADLog(id, placementId);
     }
 
     //广告展示成功
@@ -143,10 +151,11 @@ export default class ATInterstitial extends zgSingleton {
         // // console.log('99999999   onInterstitialAdShow')
         let data = JSON.parse(callbackInfo)
         let id = 2
-        if (this.interAdType == 0) {
+        let type = this.checkPlacementIDType(placementId);
+        if (type == 0) {
             id = 2
         }
-        else if (this.interAdType == 1) {
+        else if (type == 1) {
             id = 9
         }
         gData.adData.updateADLog(id, placementId, data);
@@ -173,14 +182,23 @@ export default class ATInterstitial extends zgSingleton {
     //插屏广告关闭
     onInterstitialAdClose(placementId, callbackInfo) {
         this.interAdState = InterAdState.Close;
-        this.loadInter(this.interAdType)
 
         // //给奖励
-        if (this.interAdType == 1) {
+        let type = this.checkPlacementIDType(placementId);
+        if (type == 1) {
             let data = JSON.parse(callbackInfo);
             gData.adData.updateADLog(8, placementId, data);
+            this.loadInter(1);
+        }
+        else {
+            this.loadInter(0);
         }
     }
+
+    onInterstitialAdFailedToPlayVideo(placementId, errorInfo) {
+        mk.console.logSingle('onInterstitialAdFailedToPlayVideo  placementId >> ', placementId);
+        mk.console.logSingle('onInterstitialAdFailedToPlayVideo  ', errorInfo);
+    }
 }
 
 

+ 4 - 1
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitialJS.js

@@ -65,7 +65,7 @@ var ATInterstitialJS = cc.Class({
      * @returns 
      */
     onInterstitialAdLoadFail: function (placementId, errorInfo) {
-        ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + placementId + ", " + errorInfo + ")");   
+        ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + placementId + ", " + errorInfo + ")");
         if (this.proxy == null) return;
         this.proxy.onInterstitialAdLoadFail(placementId, errorInfo);
     },
@@ -98,6 +98,7 @@ var ATInterstitialJS = cc.Class({
      * @param {*} callbackInfo 回调信息
      */
     onInterstitialAdEndPlayingVideo: function (placementId, callbackInfo) {
+
         // ATJSSDK.printLog("AnyThinkInterstitialDemo::onInterstitialAdEndPlayingVideo("  + placementId + ", " + callbackInfo + ")");
     },
 
@@ -108,6 +109,8 @@ var ATInterstitialJS = cc.Class({
      */
     onInterstitialAdFailedToPlayVideo: function (placementId, errorInfo) {
         // ATJSSDK.printLog("AnyThinkInterstitialDemo::onInterstitialAdFailedToPlayVideo(" + placementId + ", " + errorInfo + ")");
+        if (this.proxy == null) return;
+        this.proxy.onInterstitialAdFailedToPlayVideo(placementId, errorInfo);
     },
 
     /**

+ 3 - 1
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATRewardVideo.ts

@@ -132,7 +132,9 @@ export class ATRewardVideo extends zgSingleton {
      * @param callbackInfo 回调信息
      */
     onRewardedVideoAdPlayFailed(placementId, errorInfo, callbackInfo) {
-        //ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed(" + placementId + ", " + errorInfo + ", " + callbackInfo + ")");
+        mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed placementId >> ", placementId);
+        mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed errorInfo ", errorInfo);
+        mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed callbackInfo ", callbackInfo);
         let data = JSON.parse(callbackInfo)
         gData.adData.updateADLog(5, placementId, data);
         ATSDKMgr.getInstance().watchVideoAdCallBack(AdPlayStateType.PlayFail);

+ 6 - 3
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr.ts

@@ -21,7 +21,7 @@ export default class ATSDKMgr extends zgSingleton implements IADSDKMgr {
     /**Topon 信息流广告位 */
     public static topon_native_placementId = "b5f8fa77aa5262";
     /**Topon 全屏插屏广告位 */
-    public static topon_fullinter_placementId = "b5f8fa77aa5262";
+    public static topon_fullinter_placementId = "b6113813b876a1";
     /**Topon 全屏插屏广告位 */
     public static topon_banner_placementId = "b5f8fa77aa5262";
 
@@ -61,7 +61,7 @@ export default class ATSDKMgr extends zgSingleton implements IADSDKMgr {
         let str = JsbSystem.getAdvertisingChannel();
         if (!str) {
             //channelId,AppId,AppSecreate,激励视频,插屏,信息流,开屏,banner
-            str = '1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313';
+            str = '1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313,b60cac0e524313';
         }
         console.log("getAdvertiseChannel..." + str);
 
@@ -72,8 +72,11 @@ export default class ATSDKMgr extends zgSingleton implements IADSDKMgr {
         ATSDKMgr.topon_rewardVideo_placementId = arr[3];
         ATSDKMgr.topon_inter_placementId = arr[4];
         ATSDKMgr.topon_native_placementId = arr[5];
-        ATSDKMgr.topon_fullinter_placementId = arr[6];
+
         ATSDKMgr.topon_banner_placementId = arr[7];
+        if (arr[8]) {
+            ATSDKMgr.topon_fullinter_placementId = arr[8];
+        }
     }
 
     //激励视频广告------------------------------------------------------------------------------

+ 24 - 7
assets/script/mk/system/AdSystem.ts

@@ -1,3 +1,4 @@
+import Util from "../../before/util/Util";
 import { VideoAdType } from "../../game/data/GameData";
 import { IADSDKMgr } from "../sdk/ad/IADSDKMgr";
 import JsbSystem from "./JsbSystem";
@@ -61,7 +62,6 @@ export default class AdSystem {
         else {
             if (cc.sys.platform != cc.sys.WECHAT_GAME) {
                 if (cc.sys.os == cc.sys.OS_ANDROID) {
-                    // jsb.reflection.callStaticMethod("org/cocos2dx/javascript/config/TTAdManagerHolder", "showVideo", "(I)V", pop);
                     this.adSdk.showVideo();
                 }
                 else if (cc.sys.os == cc.sys.OS_IOS) {
@@ -92,6 +92,8 @@ export default class AdSystem {
      */
     public wacthAdSuccess(placementId = '') {
         mk.console.log("=== wacthAdSuccess");
+        //累计视频次数
+        mk.data.setTAEventUser(1, 'video_time', 1);
         //广告过后,渲染会有问题,统一下一帧再处理逻辑
         mk.ui.scheduleOnce(() => {
             if (!gData.adData.checkAdMax()) {
@@ -110,7 +112,6 @@ export default class AdSystem {
 
         if (cc.sys.platform != cc.sys.WECHAT_GAME) {
             if (cc.sys.os == cc.sys.OS_ANDROID) {
-                // jsb.reflection.callStaticMethod("org/cocos2dx/javascript/config/TTAdManagerHolder", "showVideo", "(I)V", pop);
                 this.adSdk.showNative(type);
             }
             else if (cc.sys.os == cc.sys.OS_IOS) {
@@ -131,7 +132,6 @@ export default class AdSystem {
 
         if (cc.sys.platform != cc.sys.WECHAT_GAME) {
             if (cc.sys.os == cc.sys.OS_ANDROID) {
-                // jsb.reflection.callStaticMethod("org/cocos2dx/javascript/config/TTAdManagerHolder", "showVideo", "(I)V", pop);
                 this.adSdk.destroyNative();
             }
             else if (cc.sys.os == cc.sys.OS_IOS) {
@@ -167,9 +167,14 @@ export default class AdSystem {
     }
 
     public showBanner() {
+        if (CC_DEBUG) {
+            return;
+        }
+
         if (!this.ifShowAd) {
             return;
         }
+
         // console.log("===[AdSystem gameData.adShowConfig", gData.gameData.adShowConfig.is_show_banner);
         // if (gData.gameData.adShowConfig && gData.gameData.adShowConfig.is_show_banner == 1) {
         this.adSdk.showBanner();
@@ -177,9 +182,14 @@ export default class AdSystem {
     }
 
     public destoryBanner() {
+        if (CC_DEBUG) {
+            return;
+        }
+
         if (!this.ifShowAd) {
             return;
         }
+
         this.adSdk.destoryBanner();
     }
 
@@ -188,6 +198,10 @@ export default class AdSystem {
      * @param type 0 插屏 1 全屏
      */
     public showInterAd(type: number) {
+        if (CC_DEBUG) {
+            return;
+        }
+
         if (!this.ifShowAd) {
             return;
         }
@@ -205,12 +219,15 @@ export default class AdSystem {
         if (!gData.gameData.adShowConfig) {
             return;
         }
+
         let chance = gData.gameData.configs.ServerConfig.interOpenChance;
-        if (!chance) {
-            chance = 0.4;
-        }
+
         if (Math.random() <= chance) {
-            this.showInterAd(0);
+            let delay = Number(gData.gameData.configs.ServerConfig.interOpenDelayMin)
+                + Math.random() * (Number(gData.gameData.configs.ServerConfig.interOpenDelayMax) - Number(gData.gameData.configs.ServerConfig.interOpenDelayMin));
+            setTimeout(() => {
+                this.showInterAd(0);
+            }, delay * 1000);
         }
         else {
             gData.moreGame.popMoreGamePopNode();

+ 20 - 0
assets/script/mk/system/DataSystem.ts

@@ -22,6 +22,26 @@ export default class DataSystem {
     }
 
     /**
+    * 设置人物属性
+    * @param type 0 set  1 add
+    * @param property 属性名
+    * @param value 浮点数值 
+    */
+    public setTAEventUser(type: number, property: string, value: number) {
+        JsbSystem.setTAEventUser(type, property, value);
+    }
+
+    /**
+    * 设置人物属性
+    * @param type 0 set  1 add
+    * @param property 属性名
+    * @param value 字符串数值 
+    */
+    public setTAEventUserStr(type: number, property: string, value: string) {
+        JsbSystem.setTAEventUserStr(type, property, value);
+    }
+
+    /**
      * 星云打点
      */
     public sendXYEvent(eventId: string, des: string) {

+ 6 - 12
assets/script/mk/system/GuideSystem.ts

@@ -8,16 +8,10 @@ import { OpenActionType } from "./UISystem";
 export default class GuideSystem {
 
     private crtGuideID: number;
-    public ui: cc.Node;
+    public ui:cc.Node;
 
     public open(id) {
-        if (gData.gameData.funOpenData['6'] != 1) {
-            this.crtGuideID = 9999;
-            gData.gameData.setProp(GameProp.guideID, this.crtGuideID);
-        }
-        else {
-            this.crtGuideID = gData.gameData.getProp(GameProp.guideID);
-        }
+        this.crtGuideID = gData.gameData.getProp(GameProp.guideID);
         //测试永远新手引导,永远第一关
         if (!cc.sys.isNative) {
             this.crtGuideID = 1;
@@ -33,7 +27,7 @@ export default class GuideSystem {
         }
         gData.guideData.crtID = id;
         this.crtGuideID = id;
-        mk.ui.openPanel("module/guide/guide", OpenActionType.normal, this.ui);
+        mk.ui.openPanel("module/guide/guide",OpenActionType.normal,this.ui);
         this.setGuideID(this.crtGuideID++);
         return true
     }
@@ -43,9 +37,9 @@ export default class GuideSystem {
         let guide = gData.guideData.getGuidesByID(id);
         if (id == 2) {
             id = 9999;
-            mk.data.sendXYEvent("guide_end", "新手引导结束");
+            mk.data.sendXYEvent("guide_end","新手引导结束");
         }
-
+       
         gData.gameData.setProp(GameProp.guideID, id);
     }
 
@@ -69,7 +63,7 @@ export default class GuideSystem {
      * 当前是否正在引导
      * @returns 
      */
-    public isGuiding(): boolean {
+    public isGuiding():boolean{
         return mk.ui.getCurOnPanel("guide") != null;
     }
 }

+ 35 - 0
assets/script/mk/system/JsbSystem.ts

@@ -132,6 +132,11 @@ export default class JsbSystem {
             gData.appData.appId = unicodeArr[0];
             gData.appData.version = unicodeArr[1];
         }
+
+        if (CC_DEBUG) {
+            gData.appData.appId = "wxcf31f0e54f7fefda";
+            gData.appData.version = "1.1.2";
+        }
         // console.log('gData.appData  ', unicodeStr)
         // console.log('gData.appData.appId  ', gData.appData.appId)
         // console.log('gData.appData.version  ', gData.appData.version)
@@ -315,6 +320,36 @@ export default class JsbSystem {
     }
 
     /**
+    * 设置人物属性
+    * @param type 0 set  1 add
+    * @param property 属性名
+    * @param value 数值
+    */
+    public static setTAEventUser(type: number, property: string, value: number) {
+        if (cc.sys.os == cc.sys.OS_ANDROID) {
+            this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventUser", "(ILjava/lang/String;F)V", type, property, value);
+        }
+        else if (cc.sys.os == cc.sys.OS_IOS) {
+
+        }
+    }
+
+    /**
+    * 设置人物属性
+    * @param type 0 set  1 add
+    * @param property 属性名
+    * @param value 数值
+    */
+    public static setTAEventUserStr(type: number, property: string, value: string) {
+        if (cc.sys.os == cc.sys.OS_ANDROID) {
+            this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventUserStr", "(ILjava/lang/String;Ljava/lang/String;)V", type, property, value);
+        }
+        else if (cc.sys.os == cc.sys.OS_IOS) {
+
+        }
+    }
+
+    /**
      * 微信授权
      * @description 微信SDK功能 CocosToJava
      */

BIN
build/jsb-link/assets/main/index.jsc


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/config.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/import/2f/2f63e38a-f6a2-47c7-bb1d-2bc6a29d26bb.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/import/cc/cc34b721-8635-450d-a8c7-955c7db376ac.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/import/cd/cd71cb27-f8c9-4284-b18c-9aab7aa926a9.json


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/import/eb/eb3877a0-0566-4cd8-bb4e-fe5969e6f0e2.json


+ 1 - 1
build/jsb-link/assets/resources/native/9e/9ed98385-f23f-41b7-a2bc-27a1d4ad9fd6.manifest

@@ -1 +1 @@
-{"version":"1.0.0","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/version.manifest"}
+{"version":"1.0.1","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/version.manifest"}

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/jsb-link/assets/resources/native/a8/a81eb395-718d-4f3b-958c-cb871f7dd5fa.manifest


BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser


+ 1 - 1
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/gradle.properties

@@ -1,4 +1,4 @@
-TF_CHANNEL="22";        //1 巨量 2 快手 3 广点通 5应用宝
+TF_CHANNEL="1";        //1 巨量 2 快手 3 广点通 5应用宝
 JL_AID="194376";       //巨量appid
 JL_CHANNEL="juliang";    //巨量渠道
 KS_AID="67132";        //快手appid

+ 21 - 0
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr.java

@@ -146,6 +146,27 @@ public class ThirdSdkMgr {
         UMSDKMgr.getInstance()._UMSDKEvent(ThirdSdkMgr.appActivity, eventID, des);
     }
 
+    /**
+     * 设置人物属性
+     * @param type 0 set  1 add
+     * @param property 属性名
+     * @param value 数值
+     */
+    public static void setTAEventUser(int type, String property, float value){
+        TDSDKMgr.getInstance().setTAEventUser(type, property, value);
+    }
+
+    /**
+     * 设置人物属性
+     * @param type 0 set  1 add
+     * @param property 属性名
+     * @param value 数值
+     */
+    public static void setTAEventUserStr(int type, String property, String value){
+        TDSDKMgr.getInstance().setTAEventUserStr(type, property, value);
+    }
+
+
     //系统相关---------------------------------------------------------------------------------------
     /**
      * 复制到剪贴板

+ 67 - 0
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/thirdSdk/thinkingdata/TDSDKMgr.java

@@ -89,4 +89,71 @@ public class TDSDKMgr {
         Log.d("TAEvent", "setTAEventUser: "+timeString);
         return timeString;
     }
+
+    /**
+     * 设置人物属性
+     * @param type 0 set  1 add
+     * @param property 属性名
+     * @param value 数值
+     */
+    public void setTAEventUser(int type, String property, float value){
+        if(type == 0){
+            try {
+                JSONObject properties = new JSONObject();
+                properties.put(property,value);
+                TDInstance.user_set(properties);
+            } catch (JSONException e) {
+                e.printStackTrace();
+            }
+        }
+        else{
+            try {
+                JSONObject properties = new JSONObject();
+                properties.put(property,value);
+                TDInstance.user_add(properties);
+            } catch (JSONException e) {
+                e.printStackTrace();
+            }
+        }
+
+        this.sendSuperRole();
+    }
+
+    /**
+     * 设置人物属性
+     * @param type 0 set  1 add
+     * @param property 属性名
+     * @param value 数值
+     */
+    public void setTAEventUserStr(int type, String property, String value){
+        if(type == 0){
+            try {
+                JSONObject properties = new JSONObject();
+                properties.put(property,value);
+                TDInstance.user_set(properties);
+            } catch (JSONException e) {
+                e.printStackTrace();
+            }
+        }
+        else{
+            try {
+                JSONObject properties = new JSONObject();
+                properties.put(property,value);
+                TDInstance.user_add(properties);
+            } catch (JSONException e) {
+                e.printStackTrace();
+            }
+        }
+    }
+
+    public void sendSuperRole(){
+        try {
+            JSONObject superProperties = new JSONObject();
+            superProperties.put("device_id", TDInstance.getDeviceId());
+
+            TDInstance.setSuperProperties(superProperties);
+        } catch (JSONException e) {
+            e.printStackTrace();
+        }
+    }
 }

+ 276 - 46
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -595,7 +595,9 @@ null != this.proxy && this.proxy.onInterstitialAdShow(t, e);
 },
 onInterstitialAdStartPlayingVideo: function() {},
 onInterstitialAdEndPlayingVideo: function() {},
-onInterstitialAdFailedToPlayVideo: function() {},
+onInterstitialAdFailedToPlayVideo: function(t, e) {
+null != this.proxy && this.proxy.onInterstitialAdFailedToPlayVideo(t, e);
+},
 onInterstitialAdFailedToShow: function() {},
 onInterstitialAdClose: function(t, e) {
 null != this.proxy && this.proxy.onInterstitialAdClose(t, e);
@@ -637,7 +639,7 @@ var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
 i(e, t);
 function e() {
 var e = null !== t && t.apply(this, arguments) || this;
-e.interAdType = 0;
+e.interAdType = -1;
 e.interAdState = 0;
 e.ifLoadShow = !1;
 return e;
@@ -646,7 +648,10 @@ e.prototype.init = function() {
 this.ATInterstitialJS = cc.ATInterstitialJS;
 this.ATInterstitialJS.proxy = this;
 this.ATInterstitialJS.init();
-this.interAdState == a.Unload && this.loadInter(0);
+if (this.interAdState == a.Unload) {
+this.loadInter(0);
+this.loadInter(1);
+}
 };
 e.prototype.placementID = function() {
 if (0 == this.interAdType) {
@@ -657,48 +662,64 @@ if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_fullinter_placementId;
 if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_fullinter_placementId;
 }
 };
+e.prototype.checkPlacementIDType = function(t) {
+if (cc.sys.os === cc.sys.OS_IOS) {
+if (t == c.default.topon_inter_placementId) return 0;
+if (t == c.default.topon_fullinter_placementId) return 1;
+} else if (cc.sys.os === cc.sys.OS_ANDROID) {
+if (t == c.default.topon_inter_placementId) return 0;
+if (t == c.default.topon_fullinter_placementId) return 1;
+}
+};
 e.prototype.hasAdReady = function() {
 return this.ATInterstitialJS.hasAdReady();
 };
 e.prototype.loadInter = function(t, e) {
 void 0 === e && (e = !1);
-this.interAdType = t;
 this.ifLoadShow = e;
 this.interAdState = a.Loading;
 this.ATInterstitialJS.loadInter(t);
 };
 e.prototype.showInter = function(t) {
+if (this.interAdState == a.Show && t == this.interAdType) console.log("当前插屏类型正在展示"); else {
 this.interAdType = t;
-if (this.interAdState == a.Show) ; else if (this.hasAdReady()) {
+if (this.hasAdReady()) {
 this.interAdState = a.Show;
 this.ATInterstitialJS.showInter(t);
 } else this.interAdState == a.Loading ? this.ifLoadShow = !0 : this.loadInter(t, !0);
+}
 };
-e.prototype.onInterstitialAdLoaded = function() {
+e.prototype.onInterstitialAdLoaded = function(t) {
 this.interAdState = a.LoadSuccess;
-this.ifLoadShow && this.showInter(this.interAdType);
+if (this.ifLoadShow) {
+var e = this.checkPlacementIDType(t);
+this.showInter(e);
+}
 };
 e.prototype.onInterstitialAdLoadFail = function(t) {
 this.interAdState = a.LoadFail;
-if (1 == this.interAdType) {
-mk.tip.pop("拉取全屏视频失败,请稍后再试");
-gData.adData.updateADLog(10, t);
-} else 0 == this.interAdType && gData.adData.updateADLog(11, t);
+var e = 11, n = this.checkPlacementIDType(t);
+0 == n ? e = 11 : 1 == n && (e = 10);
+gData.adData.updateADLog(e, t);
 };
 e.prototype.onInterstitialAdShow = function(t, e) {
 this.interAdState = a.Show;
-var n = JSON.parse(e), o = 2;
-0 == this.interAdType ? o = 2 : 1 == this.interAdType && (o = 9);
+var n = JSON.parse(e), o = 2, i = this.checkPlacementIDType(t);
+0 == i ? o = 2 : 1 == i && (o = 9);
 gData.adData.updateADLog(o, t, n);
 };
 e.prototype.onInterstitialAdClick = function() {};
 e.prototype.onInterstitialAdClose = function(t, e) {
 this.interAdState = a.Close;
-this.loadInter(this.interAdType);
-if (1 == this.interAdType) {
+if (1 == this.checkPlacementIDType(t)) {
 var n = JSON.parse(e);
 gData.adData.updateADLog(8, t, n);
-}
+this.loadInter(1);
+} else this.loadInter(0);
+};
+e.prototype.onInterstitialAdFailedToPlayVideo = function(t, e) {
+mk.console.logSingle("onInterstitialAdFailedToPlayVideo  placementId >> ", t);
+mk.console.logSingle("onInterstitialAdFailedToPlayVideo  ", e);
 };
 return e;
 }(r.zgSingleton);
@@ -1229,6 +1250,9 @@ e.prototype.onRewardedVideoAdPlayEnd = function() {
 this.ifWatchEnd = !0;
 };
 e.prototype.onRewardedVideoAdPlayFailed = function(t, e, n) {
+mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed placementId >> ", t);
+mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed errorInfo ", e);
+mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed callbackInfo ", n);
 var o = JSON.parse(n);
 gData.adData.updateADLog(5, t, o);
 s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.PlayFail);
@@ -1427,7 +1451,7 @@ return cc.sys.os === cc.sys.OS_IOS ? n.topon_rewardVideo_placementId : cc.sys.os
 };
 e.prototype.getAdvertiseChannel = function() {
 var t = c.default.getAdvertisingChannel();
-t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313");
+t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313,b60cac0e524313");
 console.log("getAdvertiseChannel..." + t);
 var e = t.split(",");
 e[0];
@@ -1436,8 +1460,8 @@ n.topon_android_appSecret = e[2];
 n.topon_rewardVideo_placementId = e[3];
 n.topon_inter_placementId = e[4];
 n.topon_native_placementId = e[5];
-n.topon_fullinter_placementId = e[6];
 n.topon_banner_placementId = e[7];
+e[8] && (n.topon_fullinter_placementId = e[8]);
 };
 e.prototype.showVideo = function() {
 console.log("===[ShowVideoAd] ", d.ATRewardVideo.getInstance().hasAdReady());
@@ -1484,7 +1508,7 @@ e.topon_android_appSecret = "66b742dd0e502b64d783d9c66a9d30c4";
 e.topon_rewardVideo_placementId = "b5f8fa6673e180";
 e.topon_inter_placementId = "b5f8fa77aa5262";
 e.topon_native_placementId = "b5f8fa77aa5262";
-e.topon_fullinter_placementId = "b5f8fa77aa5262";
+e.topon_fullinter_placementId = "b6113813b876a1";
 e.topon_banner_placementId = "b5f8fa77aa5262";
 return n = a([ f ], e);
 }(s.zgSingleton));
@@ -1850,8 +1874,8 @@ this.adsource_isheaderbidding = "";
 this.publisher_revenue = "";
 this.precision = "";
 this.ecpm_level = "";
-this.adType = 1;
 this._watchNumToday = 0;
+this.fullInterShowStr = "";
 }
 Object.defineProperty(t.prototype, "watchNumToday", {
 get: function() {
@@ -1988,6 +2012,29 @@ ecpm_level: ""
 };
 mk.http.sendData("updateADLog", o);
 };
+t.prototype.setFullInterShowStr = function() {
+for (var t = gData.gameData.configs.GlobalCfg.fullInterShowStrArr.split(";"), e = 0; e < t.length; e++) {
+var n = t[e].split(",");
+if (gData.gameData.adShowConfig.average_ecpm <= n[1]) {
+this.fullInterShowStr = n[2];
+break;
+}
+}
+};
+t.prototype.checkShowFullInter = function(t) {
+if ("1" == gData.gameData.configs.GlobalCfg.popFullInter) if (1 == t) gData.gameData.adShowConfig.average_ecpm <= gData.gameData.configs.GlobalCfg.popFullEcpmAfterCash && mk.ad.showInterAd(1); else if (2 == t && this.fullInterShowStr) {
+var e = mk.storage.getStorage("popFullIndex");
+null == e ? e = 0 : e++;
+mk.storage.setStorage("popFullIndex", e);
+var n = e % this.fullInterShowStr.length;
+mk.console.log("checkShowFullInter  this.fullInterShowStr  ", this.fullInterShowStr);
+mk.console.log("checkShowFullInter  index", n);
+if ("1" == this.fullInterShowStr[n]) {
+mk.console.log("checkShowFullInter showInterAd");
+mk.ad.showInterAd(1);
+}
+}
+};
 return t;
 }();
 n.AdData = c;
@@ -2040,6 +2087,7 @@ t.prototype.wacthAdSuccess = function(t) {
 var e = this;
 void 0 === t && (t = "");
 mk.console.log("=== wacthAdSuccess");
+mk.data.setTAEventUser(1, "video_time", 1);
 mk.ui.scheduleOnce(function() {
 gData.adData.checkAdMax() || e.videoAdcallBack(!0);
 e.initLastTimeStamp();
@@ -2077,10 +2125,15 @@ t.prototype.showInterAd = function(t) {
 this.ifShowAd && this.adSdk.showInter(t);
 };
 t.prototype.checkShowInterByChance = function() {
+var t = this;
 if (this.ifShowAd && gData.gameData.adShowConfig) {
-var t = gData.gameData.configs.ServerConfig.interOpenChance;
-t || (t = .4);
-Math.random() <= t ? this.showInterAd(0) : gData.moreGame.popMoreGamePopNode();
+var e = gData.gameData.configs.ServerConfig.interOpenChance;
+if (Math.random() <= e) {
+var n = Number(gData.gameData.configs.ServerConfig.interOpenDelayMin) + Math.random() * (Number(gData.gameData.configs.ServerConfig.interOpenDelayMax) - Number(gData.gameData.configs.ServerConfig.interOpenDelayMin));
+setTimeout(function() {
+t.showInterAd(0);
+}, 1e3 * n);
+} else gData.moreGame.popMoreGamePopNode();
 }
 };
 return t;
@@ -5127,7 +5180,11 @@ this.showCashPro();
 };
 e.prototype.showCashPro = function() {
 this.cashPro.active = !0;
-mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), null, "elasticIn");
+mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), function() {
+gData.adData.checkShowFullInter(1);
+}, "elasticIn");
+mk.data.setTAEventUser(1, "cash_time", 1);
+mk.data.setTAEventUser(1, "cash_total", this.money);
 this.labMoney.string = "¥" + this.money;
 };
 e.prototype.tixianFail = function() {
@@ -5645,6 +5702,12 @@ t.prototype.sendDataEvent = function(t, e) {
 console.log("===[DataSystem", t, e);
 t && e && o.default.sendEvent(t, e);
 };
+t.prototype.setTAEventUser = function(t, e, n) {
+o.default.setTAEventUser(t, e, n);
+};
+t.prototype.setTAEventUserStr = function(t, e, n) {
+o.default.setTAEventUserStr(t, e, n);
+};
 t.prototype.sendXYEvent = function(t, e) {
 if (t && e) {
 var n = {
@@ -7482,6 +7545,7 @@ case 3:
 if (0 != (e = n.sent()).errcode) return [ 2 ];
 this.adShowConfig = e.data;
 mk.console.logSingle("user/adShowConfig", e.data);
+gData.adData.setFullInterShowStr();
 this.dataFinish = !0;
 return [ 2 ];
 }
@@ -7510,7 +7574,17 @@ this.gameData.turntableTimes = t.turntableTimes;
 this.gameData.userTuCaoInfo = t.userTuCaoInfo;
 this.gameData.versioncfg = t.versioncfg;
 this.gameData.isFirstRedMoney = t.isFirstRedMoney;
+t.groupCode && (this.gameData.groupCode = t.groupCode);
+console.log("ABTest ", t.groupCode);
 gData.adData.watchNumToday = null == t.dayVideoTimesForRedMoney ? 0 : t.dayVideoTimesForRedMoney;
+if (gData.loginData.isFirstIn) {
+gData.loginData.isFirstIn = !1;
+mk.data.sendDataEvent("ABTest", "触发" + this.gameData.groupCode + "方案");
+mk.data.setTAEventUserStr(0, "xy_uid", gData.loginData.uin);
+mk.data.setTAEventUserStr(0, "regtime_app_id", gData.appData.appVersion);
+}
+mk.data.setTAEventUserStr(0, "now_app_id", gData.appData.appVersion);
+mk.data.setTAEventUserStr(0, "channel_id", gData.appData.umengChannel);
 };
 t.prototype.setProp = function(t, e) {
 return o(this, void 0, void 0, function() {
@@ -7641,6 +7715,7 @@ this.hammerPropNum = 0;
 this.resetPropNum = 0;
 this.changePropNum = 0;
 this.isFirstRedMoney = 0;
+this.groupCode = 0;
 }
 Object.defineProperty(t.prototype, "isSignInToday", {
 get: function() {
@@ -7694,6 +7769,7 @@ set: function(t) {
 this._redMoney = t;
 gData.gameData.init_coin = !0;
 gData.gameData.init_red_point = !0;
+mk.data.setTAEventUser(0, "red_money_num", this._redMoney);
 },
 enumerable: !1,
 configurable: !0
@@ -8623,6 +8699,7 @@ mk.ui.getCurOnPanel("GetPropUI") && mk.ui.closePanel("GetPropUI");
 this.gameOver();
 };
 e.prototype.gameOver = function() {
+mk.data.setTAEventUser(1, "video_play_time", 1);
 mk.ui.openPanel("game/prefab/uiPanel/GameOverUI");
 };
 e.prototype.checkBonusNum = function(t) {
@@ -9690,10 +9767,7 @@ value: !0
 var o = t("../../game/data/GameData"), i = t("./UISystem"), a = function() {
 function t() {}
 t.prototype.open = function(t) {
-if (1 != gData.gameData.funOpenData[6]) {
-this.crtGuideID = 9999;
-gData.gameData.setProp(o.GameProp.guideID, this.crtGuideID);
-} else this.crtGuideID = gData.gameData.getProp(o.GameProp.guideID);
+this.crtGuideID = gData.gameData.getProp(o.GameProp.guideID);
 if (!cc.sys.isNative) {
 this.crtGuideID = 1;
 gData.gameData.setProp(o.GameProp.levelNum, 0);
@@ -10954,6 +11028,14 @@ t.sendEvent = function(t, e) {
 cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "sendEvent", "(Ljava/lang/String;Ljava/lang/String;)V", t, e) : (cc.sys.os, 
 cc.sys.OS_IOS);
 };
+t.setTAEventUser = function(t, e, n) {
+cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventUser", "(ILjava/lang/String;F)V", t, e, n) : (cc.sys.os, 
+cc.sys.OS_IOS);
+};
+t.setTAEventUserStr = function(t, e, n) {
+cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventUserStr", "(ILjava/lang/String;Ljava/lang/String;)V", t, e, n) : (cc.sys.os, 
+cc.sys.OS_IOS);
+};
 t.WxAuth = function() {
 cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WxAuth", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
 };
@@ -11360,6 +11442,7 @@ this.randomKey = "abcdefghijklopqrstuvwxyzabcdefgh";
 this.uin = "";
 this.tempUin = "";
 this.loginTicket = "";
+this.isFirstIn = !1;
 }
 t.prototype.loadLocalRes = function() {
 return o(this, void 0, void 0, function() {
@@ -11763,6 +11846,7 @@ e.lbl_server = null;
 e.lbl_privacy = null;
 e.process = 0;
 e.hotUpdatePanel = null;
+e.hasDeviceBackInit = !1;
 return e;
 }
 e.prototype.onLoad = function() {
@@ -11776,7 +11860,8 @@ this.init();
 };
 e.prototype.update = function() {
 if (gData.appData.getDeviceInfoCompelete) {
-gData.appData.getDeviceInfoCompelete = !1;
+if (!this.hasDeviceBackInit) {
+this.hasDeviceBackInit = !0;
 this.getDeviceInfoBack();
 }
 if (gData.appData.updateState == p.UpdateState.ForceUpdateFinish) {
@@ -11800,7 +11885,7 @@ mk.storage.setStorage("agreementTip", 1, !1);
 } else {
 mk.ui.openPanel("game/prefab/game");
 console.log("===[Jsbsystem 显示开屏广告================================");
-mk.ad.ifShowAd && l.default.showSplash();
+l.default.showSplash();
 }
 gData.gameData.dataFinish = !1;
 }
@@ -11810,6 +11895,7 @@ gData.gameData.dataFinish = !1;
 this.lbl_progress.string = "正在更新中,请耐心等待";
 this.bar.setProgress(gData.appData.updatePercent);
 }
+}
 };
 e.prototype.setProgress = function(t) {
 this.bar.setProgress(t);
@@ -13009,7 +13095,7 @@ var t = mk.math.random(0, this.moreGameList.normal.length - 1);
 return this.moreGameList.normal[t];
 };
 e.prototype.popMoreGamePopNode = function() {
-mk.guide.isGuiding || mk.ui.getCurOnPanel("reward") || Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
+mk.guide.isGuiding() || mk.ui.getCurOnPanel("reward") || Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
 };
 e.prototype.popNodeGetRedBag = function() {
 return a(this, void 0, void 0, function() {
@@ -14782,12 +14868,15 @@ e.prototype.update = function() {
 if (gData.receiptNotice.init_style) {
 gData.receiptNotice.init_style = !1;
 this.initStyle();
+gData.adData.checkShowFullInter(1);
 }
 };
 e.prototype.initStyle = function() {
 this.lbl_receipt_rmb.string = "¥" + (gData.receiptNotice.receip_rmb / 100).toFixed(2) + "元";
 this.lbl_rmb_total.string = "¥" + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + "元";
 this.lbl_user_name.string = gData.wechatData.nickName || "";
+mk.data.setTAEventUser(1, "cash_time", 1);
+mk.data.setTAEventUser(1, "cash_total", gData.receiptNotice.receip_rmb / 100);
 };
 a([ s({
 displayName: "lbl收款金额",
@@ -15836,7 +15925,10 @@ this.labOfficial.string = "“" + this.officialStr + "”";
 this.labRed.string = "“" + this.redCodeStr + "”";
 };
 e.prototype.update = function() {
-gData.redCodeData.init_data && this.init(gData.redCodeData.money, gData.redCodeData.code);
+if (gData.redCodeData.init_data) {
+this.init(gData.redCodeData.money, gData.redCodeData.code);
+gData.adData.checkShowFullInter(1);
+}
 };
 e.prototype.lateUpdate = function() {
 gData.redCodeData.init_data = !1;
@@ -15845,6 +15937,8 @@ e.prototype.init = function(t, e) {
 this.labMoney.string = t.toFixed(2) + "元";
 this.code = e;
 this.labRedCode.string = "提现红包码:" + this.code;
+mk.data.setTAEventUser(1, "cash_time", 1);
+mk.data.setTAEventUser(1, "cash_total", t);
 };
 e.prototype.clickCopyOfficial = function() {
 mk.audio.playEffect("button");
@@ -16613,10 +16707,12 @@ e.lbl_cash_out = null;
 e.lbl_cash = null;
 e.node_cash = null;
 e.cur_stage = s.none;
+e.hasWatchVideo = !1;
 return e;
 }
 e.prototype.onLoad = function() {
 this.hb_star.active = !1;
+this.hasWatchVideo = !1;
 this.lbl_reward_value.string = "0";
 };
 e.prototype.start = function() {
@@ -16627,7 +16723,10 @@ this.initCashOutStyle(gData.gameData.gameData.redMoney);
 };
 e.prototype.update = function() {
 gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.gameData.redMoney + gData.reward.add_redbag_value);
-gData.reward.adData && this.watchVideoCall();
+if (gData.reward.adData) {
+this.watchVideoCall();
+this.hasWatchVideo = !0;
+}
 };
 e.prototype.lateUpdate = function() {
 gData.reward.add_redbag_value = 0;
@@ -16777,7 +16876,6 @@ e.prototype.onDestroy = function() {
 this.cur_stage === s.none && mk.audio.playEffect("rewardClose");
 };
 e.prototype.onClickClose = function() {
-mk.ad.destoryBanner();
 if (2 == gData.reward.subType) {
 console.log("清除积分啦啦啦啦啦阿拉拉拉啦--------------------------------", l.default.Inst.ifPass);
 gData.gameData.setProp(p.GameProp.curTotalScore, 0);
@@ -16787,6 +16885,8 @@ l.default.Inst.finalGetScore = 0;
 l.default.Inst.initScore();
 }
 l.default.Inst && l.default.Inst.ifPass ? l.default.Inst.gameCount() : mk.ad.checkShowInterByChance();
+this.hasWatchVideo || gData.adData.checkShowFullInter(2);
+mk.ad.destoryBanner();
 };
 a([ f({
 displayName: "红包类型",
@@ -17597,6 +17697,7 @@ e.lbl_id = null;
 e.img_music = null;
 e.img_effect = null;
 e.lbl_version = null;
+e.lbl_group = null;
 e.node_rule = null;
 return e;
 }
@@ -17617,6 +17718,7 @@ console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
 this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);
 "1" != gData.gameData.funOpenData[6] ? this.lbl_nickname.string = "" : this.lbl_nickname.string = gData.wechatData.nickName;
 this.lbl_version.string = gData.appData.appVersion;
+mk.console.ifShowLog ? this.lbl_group.string = "分组号:" + gData.gameData.gameData.groupCode : this.lbl_group.string = "";
 t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
 e = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
 n = this.img_music;
@@ -17734,6 +17836,10 @@ a([ d({
 type: cc.Label,
 displayName: "版本号"
 }) ], e.prototype, "lbl_version", void 0);
+a([ d({
+type: cc.Label,
+displayName: "分组号"
+}) ], e.prototype, "lbl_group", void 0);
 return a([ p ], e);
 }(cc.Component);
 n.default = h;
@@ -18424,11 +18530,123 @@ t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n(
 var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
 if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
 return a > 3 && r && Object.defineProperty(e, n, r), r;
+}, r = this && this.__awaiter || function(t, e, n, o) {
+return new (n || (n = Promise))(function(i, a) {
+function r(t) {
+try {
+s(o.next(t));
+} catch (t) {
+a(t);
+}
+}
+function c(t) {
+try {
+s(o.throw(t));
+} catch (t) {
+a(t);
+}
+}
+function s(t) {
+t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
+t(e);
+})).then(r, c);
+var e;
+}
+s((o = o.apply(t, e || [])).next());
+});
+}, c = this && this.__generator || function(t, e) {
+var n, o, i, a, r = {
+label: 0,
+sent: function() {
+if (1 & i[0]) throw i[1];
+return i[1];
+},
+trys: [],
+ops: []
+};
+return a = {
+next: c(0),
+throw: c(1),
+return: c(2)
+}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
+return this;
+}), a;
+function c(t) {
+return function(e) {
+return s([ t, e ]);
+};
+}
+function s(a) {
+if (n) throw new TypeError("Generator is already executing.");
+for (;r; ) try {
+if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o), 
+0) : o.next) && !(i = i.call(o, a[1])).done) return i;
+(o = 0, i) && (a = [ 2 & a[0], i.value ]);
+switch (a[0]) {
+case 0:
+case 1:
+i = a;
+break;
+
+case 4:
+r.label++;
+return {
+value: a[1],
+done: !1
+};
+
+case 5:
+r.label++;
+o = a[1];
+a = [ 0 ];
+continue;
+
+case 7:
+a = r.ops.pop();
+r.trys.pop();
+continue;
+
+default:
+if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
+r = 0;
+continue;
+}
+if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
+r.label = a[1];
+break;
+}
+if (6 === a[0] && r.label < i[1]) {
+r.label = i[1];
+i = a;
+break;
+}
+if (i && r.label < i[2]) {
+r.label = i[2];
+r.ops.push(a);
+break;
+}
+i[2] && r.ops.pop();
+r.trys.pop();
+continue;
+}
+a = e.call(t, r);
+} catch (t) {
+a = [ 6, t ];
+o = 0;
+} finally {
+n = i = 0;
+}
+if (5 & a[0]) throw a[1];
+return {
+value: a[0] ? a[1] : void 0,
+done: !0
+};
+}
 };
 Object.defineProperty(n, "__esModule", {
 value: !0
 });
-var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AdData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
+var s = t("../../../mk/system/JsbSystem"), l = t("../../data/AdData"), u = t("../../data/GameData"), p = cc._decorator, d = p.ccclass, h = p.property, f = function(t) {
 i(e, t);
 function e() {
 var e = null !== t && t.apply(this, arguments) || this;
@@ -18463,23 +18681,35 @@ e.prototype.clickReceiveReward = function() {
 mk.audio.playEffect("button");
 if (1 != gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
 var t = gData.gameData.gameData.signInDay;
-if (gData.sign.c_sign[t].rewardType !== s.RewardType.rmb || gData.loginData.isAuth) {
-mk.ad.videoAdType = s.VideoAdType.Sign;
+if (gData.sign.c_sign[t].rewardType !== u.RewardType.rmb || gData.loginData.isAuth) {
+mk.ad.videoAdType = u.VideoAdType.Sign;
 mk.ad.watchAd(function(e) {
 mk.console.log("watchAD:" + e);
 if (e) {
-gData.adData.watchVideo(c.AdFun.sign);
-gData.sign.c_sign[t].rewardType === s.RewardType.rmb && mk.data.sendDataEvent(s.DataEventId.signWithDrawal, "签到提现成功");
+gData.adData.watchVideo(l.AdFun.sign);
+gData.sign.c_sign[t].rewardType === u.RewardType.rmb && mk.data.sendDataEvent(u.DataEventId.signWithDrawal, "签到提现成功");
 mk.ad.destroyNativeAd();
 }
 });
-} else r.default.WxAuth();
+} else s.default.WxAuth();
 }
 };
 e.prototype.getReward = function() {
-gData.sign.signComplete();
-var t = gData.sign.getItemIndexByCanSign();
+return r(this, void 0, void 0, function() {
+var t;
+return c(this, function(e) {
+switch (e.label) {
+case 0:
+return [ 4, gData.sign.signComplete() ];
+
+case 1:
+e.sent();
+t = gData.sign.getItemIndexByCanSign();
 this.tableview.resetItemData(t, gData.sign.list_data[t]);
+return [ 2 ];
+}
+});
+});
 };
 e.prototype.initBtnStyle = function() {
 if (0 == gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
@@ -18496,17 +18726,17 @@ e.prototype.onClickClose = function() {
 mk.ad.destroyNativeAd();
 mk.ad.checkShowInterByChance();
 };
-a([ p({
+a([ h({
 type: cc.ScrollView,
 displayName: "滚动视图"
 }) ], e.prototype, "scroll_view", void 0);
-a([ p({
+a([ h({
 type: cc.Animation,
 displayName: "按钮_动画"
 }) ], e.prototype, "anim_btn", void 0);
-return a([ u ], e);
+return a([ d ], e);
 }(cc.Component);
-n.default = d;
+n.default = f;
 cc._RF.pop();
 }, {
 "../../../mk/system/JsbSystem": "JsbSystem",

+ 3 - 3
packages-hot-update/cfg.json

@@ -1,5 +1,5 @@
 {
-    "version": "1.0.0",
+    "version": "1.0.1",
     "serverRootDir": "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/",
     "resourceRootDir": "D:\\mokaszProjects\\mk_framework\\build\\jsb-link",
     "genManifestDir": "",
@@ -17,7 +17,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/lvseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTest/jsbRemote/"
     ],
-    "buildTime": 1629165299665,
-    "genTime": 1629165299665,
+    "buildTime": 1629268705311,
+    "genTime": 1629268705311,
     "genVersion": null
 }

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
packages-hot-update/manifest/project.manifest


+ 1 - 1
packages-hot-update/manifest/version.manifest

@@ -1 +1 @@
-{"version":"1.0.0","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/version.manifest"}
+{"version":"1.0.1","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminate/jsbRemote/version.manifest"}

BIN
packages-hot-update/versions/ver_1_0.1.zip


Некоторые файлы не были показаны из-за большого количества измененных файлов