Przeglądaj źródła

Merge branch 'master' of http://git.mokasz.com/zouyong/mk_framework

zouyong 5 lat temu
rodzic
commit
489d240b6e
38 zmienionych plików z 978 dodań i 500 usunięć
  1. 462 207
      assets/resources/game/prefab/game.prefab
  2. 191 135
      assets/resources/game/prefab/gameplay.prefab
  3. 12 12
      assets/resources/module/blessingBag/blessingBag.prefab
  4. 12 0
      assets/resources/module/hotUpdate/perfab.meta
  5. 28 39
      assets/resources/module/moreGame/moreGamePopNode.prefab
  6. 3 0
      assets/resources/module/setting/setting.prefab
  7. 10 2
      assets/script/before/GamePlay.ts
  8. 3 3
      assets/script/before/util/GameLogic.ts
  9. 3 2
      assets/script/before/view/uiItem/CellItem.ts
  10. 39 1
      assets/script/game/data/GameData.ts
  11. 3 0
      assets/script/game/data/module/CashProData.ts
  12. 1 1
      assets/script/game/data/module/MoreGameData.ts
  13. 52 4
      assets/script/game/game/Game.ts
  14. 5 0
      assets/script/game/module/blessingBag/BlessingBag.ts
  15. 30 26
      assets/script/game/module/forceUpdate/ForceUpdate.ts
  16. 2 0
      assets/script/game/module/guide/Guide.ts
  17. 3 3
      assets/script/game/module/login/Login.ts
  18. 2 1
      assets/script/game/module/moreGame/MoreGameNormalItem.ts
  19. 2 1
      assets/script/game/module/moreGame/MoreGamePicItem.ts
  20. 2 1
      assets/script/game/module/moreGame/MoreGamePopNode.ts
  21. 2 1
      assets/script/game/module/pigBank/PigBank.ts
  22. 2 1
      assets/script/game/module/redBagCash/RedBagCashItem.ts
  23. 13 0
      assets/script/game/module/setting/Setting.ts
  24. 6 1
      assets/script/game/module/sign/Sign.ts
  25. 2 0
      assets/script/game/module/turntable/Turnable.ts
  26. 3 1
      assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATRewardVideo.ts
  27. 3 1
      assets/script/mk/system/AdSystem.ts
  28. 13 2
      assets/script/mk/system/DataSystem.ts
  29. 2 1
      assets/script/mk/system/GuideSystem.ts
  30. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser
  31. 7 9
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build.gradle
  32. 3 3
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/gradle.properties
  33. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/keystore/eliminate.keystore
  34. 1 1
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/release/output.json
  35. 3 4
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr.java
  36. 50 34
      build/jsb-link/js backups (useful for debugging)/main.index.js
  37. 2 2
      packages-hot-update/cfg.json
  38. 1 1
      settings/project.json

Plik diff jest za duży
+ 462 - 207
assets/resources/game/prefab/game.prefab


Plik diff jest za duży
+ 191 - 135
assets/resources/game/prefab/gameplay.prefab


+ 12 - 12
assets/resources/module/blessingBag/blessingBag.prefab

@@ -1272,7 +1272,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "ea/U8lFalPA6mfioZ/fYXk",
+    "fileId": "ae6t2Dht1GG4RF+hWzVghO",
     "sync": false
   },
   {
@@ -1381,7 +1381,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "5b7R/N4IROgbViEiJEzQGt",
+    "fileId": "3e7KKJ6PxHyIDgXC6tI01c",
     "sync": false
   },
   {
@@ -1490,7 +1490,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "7e2ZxJBRpNBKYZtmvLldb5",
+    "fileId": "08UfN6oURA6bP1tfhG/MNg",
     "sync": false
   },
   {
@@ -3091,7 +3091,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "e0+AKKP29Pcp4eSwPCgPDX",
+    "fileId": "b7UXPpcINPTZCU8gDdcy8q",
     "sync": false
   },
   {
@@ -3221,7 +3221,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "cceHcPZm9PbYSCzFTBRlTM",
+    "fileId": "e0ZDeSvtVPDqay0j494nUe",
     "sync": false
   },
   {
@@ -3351,7 +3351,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "d3kwf10VVCarBaEQzFmhlQ",
+    "fileId": "28NzgSbNFJzJB3imSokgIB",
     "sync": false
   },
   {
@@ -3481,7 +3481,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "32L/jLzm5FAqrmT1uttOWd",
+    "fileId": "fb9MMncwZNGLxjnJ2cu+Dp",
     "sync": false
   },
   {
@@ -3611,7 +3611,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "71YEkVz95IKaQF+rLcGABu",
+    "fileId": "6b2Osoh8JLtqJV98NHmjqS",
     "sync": false
   },
   {
@@ -3741,7 +3741,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "73M33YvntO8aL69FqpAtv6",
+    "fileId": "36EsMFzQVL+KE0twXULYxu",
     "sync": false
   },
   {
@@ -3871,7 +3871,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "c2hjk6kIdGx7zx5E2GjVTr",
+    "fileId": "6fLC6aooJEZb+/DtS12UYR",
     "sync": false
   },
   {
@@ -6713,7 +6713,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "fdU2UCcU5Mr6bYm0X6kRNv",
+    "fileId": "9dznUjurBJo46esqIgWVPA",
     "sync": false
   },
   {
@@ -6822,7 +6822,7 @@
     "asset": {
       "__uuid__": "94760687-648e-4d1f-ac2f-169b0dc625d9"
     },
-    "fileId": "df48N5tmxHGJNxEZyvPC+v",
+    "fileId": "1bKHz+2ydHV6vK/TvqhE5I",
     "sync": false
   },
   {

+ 12 - 0
assets/resources/module/hotUpdate/perfab.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "e45f4d0f-7aa3-4f6e-a64f-6b9bcde71855",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 28 - 39
assets/resources/module/moreGame/moreGamePopNode.prefab

@@ -21,26 +21,26 @@
         "__id__": 2
       },
       {
-        "__id__": 9
+        "__id__": 8
       },
       {
-        "__id__": 14
+        "__id__": 13
       },
       {
-        "__id__": 17
+        "__id__": 16
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 21
+        "__id__": 20
       },
       {
-        "__id__": 22
+        "__id__": 21
       }
     ],
     "_prefab": {
-      "__id__": 23
+      "__id__": 22
     },
     "_opacity": 255,
     "_color": {
@@ -110,7 +110,7 @@
       }
     ],
     "_prefab": {
-      "__id__": 8
+      "__id__": 7
     },
     "_opacity": 255,
     "_color": {
@@ -286,24 +286,11 @@
     "node_panel": {
       "__id__": 1
     },
-    "onComplete": [
-      {
-        "__id__": 7
-      }
-    ],
+    "transition_type": 0,
+    "onComplete": [],
     "_id": ""
   },
   {
-    "__type__": "cc.ClickEvent",
-    "target": {
-      "__id__": 1
-    },
-    "component": "",
-    "_componentId": "cd58fkToeZLvKuTEPhUbrbO",
-    "handler": "onClosePanel",
-    "customEventData": ""
-  },
-  {
     "__type__": "cc.PrefabInfo",
     "root": {
       "__id__": 1
@@ -325,17 +312,17 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 10
+        "__id__": 9
       },
       {
-        "__id__": 11
+        "__id__": 10
       },
       {
-        "__id__": 12
+        "__id__": 11
       }
     ],
     "_prefab": {
-      "__id__": 13
+      "__id__": 12
     },
     "_opacity": 255,
     "_color": {
@@ -389,7 +376,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 9
+      "__id__": 8
     },
     "_enabled": true,
     "_materials": [
@@ -421,7 +408,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 9
+      "__id__": 8
     },
     "_enabled": true,
     "_normalMaterial": null,
@@ -489,12 +476,13 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 9
+      "__id__": 8
     },
     "_enabled": true,
     "node_panel": {
       "__id__": 1
     },
+    "transition_type": 0,
     "onComplete": [],
     "_id": ""
   },
@@ -520,11 +508,11 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 15
+        "__id__": 14
       }
     ],
     "_prefab": {
-      "__id__": 16
+      "__id__": 15
     },
     "_opacity": 255,
     "_color": {
@@ -578,7 +566,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 14
+      "__id__": 13
     },
     "_enabled": true,
     "_materials": [
@@ -625,14 +613,14 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 18
+        "__id__": 17
       },
       {
-        "__id__": 19
+        "__id__": 18
       }
     ],
     "_prefab": {
-      "__id__": 20
+      "__id__": 19
     },
     "_opacity": 255,
     "_color": {
@@ -686,7 +674,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 17
+      "__id__": 16
     },
     "_enabled": true,
     "_materials": [
@@ -719,7 +707,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 17
+      "__id__": 16
     },
     "_enabled": true,
     "_color": {
@@ -752,10 +740,10 @@
     },
     "_enabled": true,
     "icon": {
-      "__id__": 15
+      "__id__": 14
     },
     "labName": {
-      "__id__": 18
+      "__id__": 17
     },
     "_id": ""
   },
@@ -778,6 +766,7 @@
       "__id__": 2
     },
     "bClickClose": true,
+    "onComplete": [],
     "_id": ""
   },
   {

+ 3 - 0
assets/resources/module/setting/setting.prefab

@@ -2705,6 +2705,7 @@
     },
     "_enabled": true,
     "panel_name": "module/setting/rule",
+    "bool_Auth": false,
     "open_type": 0,
     "transition_type": 3,
     "onComplete": [
@@ -2951,6 +2952,7 @@
     },
     "_enabled": true,
     "panel_name": "module/setting/rule",
+    "bool_Auth": false,
     "open_type": 0,
     "transition_type": 3,
     "onComplete": [
@@ -3281,6 +3283,7 @@
     },
     "design_block_node": null,
     "bClickClose": false,
+    "onComplete": [],
     "_id": ""
   },
   {

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

@@ -7,7 +7,7 @@ import BonusTip from "./view/effect/BonusTip";
 import DataMgr from "./mgr/DataMgr";
 import EffectMgr, { TIP_SPRITEITEM_TYPE } from "./mgr/EffectMgr";
 import GameMgr, { UI_NAME } from "./mgr/GameMgr";
-import { AUDIO_TYPE, EVENT_TYPE, GameProp } from "../game/data/GameData";
+import { AUDIO_TYPE, DataEventId, EVENT_TYPE, GameProp, VideoAdType } from "../game/data/GameData";
 import JsbSystem from "../mk/system/JsbSystem";
 
 const { ccclass, property } = cc._decorator;
@@ -184,6 +184,7 @@ export default class GamePlay extends cc.Component {
     }
 
     public start() {
+        mk.data.sendDataEvent(DataEventId.level, "关卡开启");
         PoolMgr.Inst.initPoolPrefab();
         GameConst.loadConfig().then(() => {
             this.adapt();
@@ -542,6 +543,11 @@ export default class GamePlay extends cc.Component {
         DataMgr.Inst.updatePropNum(2, GamePlay.Inst.curPropType, -1);
     }
 
+    /** 点击关卡气泡红包 */
+    onClickLevelQiPaoPacket() {
+        mk.ad.videoAdType = VideoAdType.LevelQiPaoRedBag;
+    }
+
     /**更改cellItem类型
      * @param cellItemType
      */
@@ -957,6 +963,7 @@ export default class GamePlay extends cc.Component {
 
     /**刷新关卡 */
     refreshGame() {
+        mk.data.sendDataEvent(DataEventId.level, "关卡开启");
         this.recycleAllCellItem();
         this.ifPass = false;
         this.ifGetPass = false;
@@ -999,9 +1006,10 @@ export default class GamePlay extends cc.Component {
         if (GamePlay.Inst.node.active == false || this.ifPass) {
             return;
         }
+        
+        mk.data.sendDataEvent(DataEventId.level, "关卡通关");
 
         this.ifPass = true;
-
         GamePlay.Inst.ifGetPass = false;
 
         let levelNum = gData.gameData.getProp(GameProp.levelNum);

+ 3 - 3
assets/script/before/util/GameLogic.ts

@@ -101,7 +101,7 @@ export default class GameLogic extends cc.Component {
     public static checkAboveCellItem(index_x: number, index_y: number, type: number, ifTagRemoved: boolean): cc.Vec2 {
 
         if (!GamePlay.Inst || !GamePlay.Inst.cellItemDic) {
-            return;
+            return null;
         }
 
         if (index_y <= 0) {
@@ -130,7 +130,7 @@ export default class GameLogic extends cc.Component {
     public static checkBelowCellItem(index_x: number, index_y: number, type: number, ifTagRemoved: boolean): cc.Vec2 {
 
         if (!GamePlay.Inst || !GamePlay.Inst.cellItemDic) {
-            return;
+            return null;
         }
 
         if (index_y >= (GameConst.row_num - 1)) {
@@ -157,7 +157,7 @@ export default class GameLogic extends cc.Component {
     public static checkLeftCellItem(index_x: number, index_y: number, type: number, ifTagRemoved: boolean): cc.Vec2 {
 
         if (!GamePlay.Inst || !GamePlay.Inst.cellItemDic) {
-            return;
+            return null;
         }
 
         if (index_x <= 0) {

+ 3 - 2
assets/script/before/view/uiItem/CellItem.ts

@@ -1,12 +1,12 @@
 import GamePlay from "../../GamePlay";
-import { PROPTYPE, SURPRISETASKTYPE } from "../../data/Enum";
+import { PROPTYPE, SURPRISETASKTYPE, VIDEOTYPE } from "../../data/Enum";
 import GameLogic from "../../util/GameLogic";
 import PoolMgr, { NODEPOOLPREFABTYPE } from "../../mgr/PoolMgr";
 import GameConst from "../../data/GameConst";
 import AniFinishDestroy from "../../util/common/AniFinishDestroy";
 import EliminateScore from "../effect/EliminateScore";
 import ScoreEnergy from "../effect/ScoreEnergy";
-import { GameProp } from "../../../game/data/GameData";
+import { GameProp, VideoAdType } from "../../../game/data/GameData";
 
 const { ccclass, property } = cc._decorator;
 
@@ -361,6 +361,7 @@ export default class CellItem extends cc.Component {
                     this.scheduleOnce(() => {
                         if (GamePlay.Inst.finalGetScore < GamePlay.Inst.targetScore) {
                             gData.reward.subType = 2;
+                            mk.ad.videoAdType = VideoAdType.LevelScoreRedBag;
                             mk.ui.openPanel("module/reward/rewardLuck");
                         }
                     });

+ 39 - 1
assets/script/game/data/GameData.ts

@@ -469,7 +469,45 @@ export enum EVENT_TYPE {
     UPDATE_CashNum = "UPDATE_CashNum",
 }
 
-export enum StorageKey {
+
+/** 数据事件Id */
+export enum DataEventId {
+    /** 点击 */
+    guide = "guide",
+    /** 按钮点击 */
+    button_click = "button_click",
+    /** 看视频 */
+    video_init = "video_init",
+    /** 看视频完成 */
+    video_end = "video_end",
+    /** 福袋功能 */
+    fudaiFunction = "fudaiFunction",
+    /** 互推功能 */
+    hutuiFunction = "hutuiFunction",
+    /** 关卡 */
+    level = "level",
+    /** 常规提现-红包币提现 */
+    commonWithDrawal = "commonWithDrawl",
+    /** 存钱罐提现 */
+    jarWithDrawal = "jarWithDrawal",
+    /** 签到提现 */
+    signWithDrawal = "signWithDrawal",
+}
 
 
+/** 视频广告类型 */
+export enum VideoAdType {
+    Null = "",
+    /** 关卡积分红包 */
+    LevelScoreRedBag = "关卡积分红包",
+    /** 主界面气泡红包 */
+    StartQiPaoRedBag = "主界面气泡红包",
+    /** 关卡气泡红包 */
+    LevelQiPaoRedBag = "关卡气泡红包",
+    /** 转盘 */
+    Turntable = "转盘视频",
+    /** 福袋视频" */
+    Fudai = "福袋视频",
+    /** 签到视频 */
+    Sign = "签到视频"
 }

+ 3 - 0
assets/script/game/data/module/CashProData.ts

@@ -4,6 +4,7 @@
  */
 
 import { Data } from "../../../mk/data/Data";
+import { DataEventId } from "../GameData";
 
 export default class CashProData extends Data {
     init_data = false;
@@ -30,6 +31,7 @@ export default class CashProData extends Data {
 
                 if (response && response.data.code == 1) {
                     gData.cashPro.init_success = true;
+                    mk.data.sendDataEvent(DataEventId.fudaiFunction,`视频红包大额提现第${gData.blessingBag.taskRbId}档领取成功`)
                 }
                 else {
                     gData.cashPro.init_fail = true;
@@ -40,6 +42,7 @@ export default class CashProData extends Data {
 
                 if (response && response.data.code == 1) {
                     gData.cashPro.init_success = true;
+                    mk.data.sendDataEvent(DataEventId.fudaiFunction,`视频红包第${gData.blessingBag.taskRbId}档领取成功`)
                 }
                 else {
                     gData.cashPro.init_fail = true;

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

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

+ 52 - 4
assets/script/game/game/Game.ts

@@ -1,5 +1,5 @@
 import JsbSystem from "../../mk/system/JsbSystem";
-import { GameProp } from "../data/GameData";
+import { DataEventId, GameProp, VideoAdType } from "../data/GameData";
 import FunBtns from "./FunBtns";
 
 const { ccclass, property } = cc._decorator;
@@ -176,8 +176,8 @@ export default class Game extends cc.Component {
 
         gData.gameData.init_red_point = false;
 
-        if(this.nodeRedPoint.node_redbagCash.active){
-            mk.guide.open(2); 
+        if (this.nodeRedPoint.node_redbagCash.active) {
+            mk.guide.open(2);
         }
     }
 
@@ -204,13 +204,61 @@ export default class Game extends cc.Component {
         // mk.fly.PlayCoinAnim(2, 20, cc.v2(0, -300), 'Canvas/界面层/game/功能按钮/右侧按钮/btn2');
     }
 
-    /** */
+    /** 点击开始 */
     public onClickStart(a, b) {
+        mk.data.sendDataEvent(DataEventId.button_click, "开始游戏icon");
         this.node_gameplay.active = true;
     }
 
+    /** 点击互推 */
+    public onClickHuTui() {
+        mk.data.sendDataEvent(DataEventId.button_click, "互推icon");
+    }
+
+    /** 点击福利礼包 */
+    public onClickFuli() {
+        mk.data.sendDataEvent(DataEventId.button_click, "福利礼包icon");
+    }
+
+    /** 点击气泡红包 */
+    public onClickQipaoRedBag() {
+        mk.ad.videoAdType = VideoAdType.StartQiPaoRedBag;
+        mk.data.sendDataEvent(DataEventId.button_click, "气泡红包icon");
+    }
+
+    /** 点击红包提现 */
+    public onClickRedBagCash() {
+        mk.data.sendDataEvent(DataEventId.button_click, "常规提现-提现icon");
+    }
+
+    /**点击金猪提现 */
+    public onClickGoldPigCash() {
+        mk.data.sendDataEvent(DataEventId.button_click, "金猪现金-提现icon");
+    }
+
+    /** 点击金猪存钱罐 */
+    public onClickPigBank() {
+        mk.data.sendDataEvent(DataEventId.button_click, "存钱罐icon");
+    }
+
+    /**  */
+    public onClickTurntable() {
+        mk.data.sendDataEvent(DataEventId.button_click, "转盘icon");
+    }
+
+    /** 点击签到 */
+    public onClickSign() {
+        mk.data.sendDataEvent(DataEventId.button_click, "签到icon");
+    }
+
+    /** 点击福袋 */
+    public onClickFudai() {
+        mk.data.sendDataEvent(DataEventId.button_click, "福袋icon");
+    }
+
     /**点击分享 */
     public onClickShare() {
+        mk.data.sendDataEvent(DataEventId.button_click, "互推icon");
         if (!gData.loginData.isAuth) {
             // mk.tip.pop("请先点击头像,在设置界面授权");
             JsbSystem.WxAuth();

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

@@ -5,6 +5,7 @@
 
 import JsbSystem from "../../../mk/system/JsbSystem";
 import { AdFun } from "../../data/AdData";
+import { DataEventId, VideoAdType } from "../../data/GameData";
 import { cashProType } from "../../data/module/CashProData";
 
 
@@ -229,6 +230,7 @@ export default class BlessingBag extends cc.Component {
 
 
     Click_AdProgressBtn() {
+      
         mk.audio.playEffect("button");
         if (!gData.loginData.isAuth) {
             JsbSystem.WxAuth();
@@ -239,6 +241,7 @@ export default class BlessingBag extends cc.Component {
             gData.blessingBag.HttpNoAdProgress();
         } else {
             if (gData.blessingBag.videoRbData.videoTime > 0) {
+                mk.ad.videoAdType = VideoAdType.Fudai;
                 mk.ad.watchAd((success: boolean) => {
                     mk.console.log("watchAD:" + success);
                     if (success) {
@@ -307,7 +310,9 @@ export default class BlessingBag extends cc.Component {
         mk.audio.playEffect("button");
         if (!this.canOpen) return;
         this.canOpen = false;
+
         if (this.rbPanelType == 1) {
+           
             gData.cashPro.openCashPro(cashProType.blessing_bigCash, gData.blessingBag.bigRbNum)
         } else {
             //弹确认提现界面

+ 30 - 26
assets/script/game/module/forceUpdate/ForceUpdate.ts

@@ -41,34 +41,38 @@ export default class ForceUpdate extends cc.Component {
         let arr = apkUrl.split('/')
         let apkName = arr[arr.length - 1]
 
-        let installUrl = Util.checkHasApk(apkName)
-        //已下载过
-        if (installUrl != '') {
-            JsbSystem.installApk(installUrl)
-        }
-        else {
-            //未下载过
-            JsbSystem.downFile2Local(apkUrl, apkName,
-                (locaPath) => {
-                    JsbSystem.installApk(locaPath)
-                },
-                (locaPath) => {
-                    let str = '下载失败,请检查网络后重试'
-                    mk.tip.pop(str);
-
-                    this.fileProgress.node.parent.active = false
-                    this.fileProgress.fillRange = 0
-                    this.labPro.string = '0%'
-
-                    this.btnSure.active = true
-                    this.btnCancel.active = true
-                },
-                (bytesReceived, totalBytesReceived, totalBytesExpected) => {
-                    let pro = totalBytesReceived / totalBytesExpected
-                    this.setPro(pro)
-                })
+        console.log('apkName  ', apkName)
+
+        let installUrl = apkName.replace('.apk', '');
+        if (JsbSystem.isFileExist(installUrl)) {
+            console.log('installUrl  ', installUrl)
+            //已下载过
+            JsbSystem.installApk(installUrl);
+            return null;
         }
 
+        //未下载过
+        JsbSystem.downFile2Local(apkUrl, apkName,
+            (locaPath) => {
+                setTimeout(() => {
+                    JsbSystem.installApk(installUrl)
+                }, 1)
+            },
+            (locaPath) => {
+                let str = '下载失败,请检查网络后重试'
+                mk.tip.pop(str);
+
+                this.fileProgress.node.parent.active = false
+                this.fileProgress.fillRange = 0
+                this.labPro.string = '0%'
+
+                this.btnSure.active = true
+                this.btnCancel.active = true
+            },
+            (bytesReceived, totalBytesReceived, totalBytesExpected) => {
+                let pro = totalBytesReceived / totalBytesExpected
+                this.setPro(pro)
+            })
     }
 
     //更新进度

+ 2 - 0
assets/script/game/module/guide/Guide.ts

@@ -1,3 +1,4 @@
+import { DataEventId } from "../../data/GameData";
 import GuideVO from "./GuideVO";
 
 /**
@@ -54,6 +55,7 @@ export default class Guide extends cc.Component {
     private nextStep() {
         this.crtStep++;
         this.crtGuide = this.guides[this.crtStep];
+        mk.data.sendDataEvent(DataEventId.guide,`新手引导第${gData.guideData.crtID}_${this.crtStep}步完成`);
         this.updateGuide();
     }
 

+ 3 - 3
assets/script/game/module/login/Login.ts

@@ -131,9 +131,9 @@ export default class Login extends cc.Component {
     //发送请求整包更新
     public async getForceVersionInfo() {
         let data: any = {
-            "appId": "wxcf31f0e54f7fefda",
-            "channel": "1",
-            "version": "1.0.0"
+            appId: gData.appData.appId,
+            channel: gData.appData.tfChannel,
+            version: gData.appData.appVersion
         }
 
         let response = await mk.http.sendRequest("getForceVersionInfo", 'POST', JSON.stringify(data), false, false)

+ 2 - 1
assets/script/game/module/moreGame/MoreGameNormalItem.ts

@@ -3,6 +3,7 @@
  * @author kaka
  */
 import JsbSystem from "../../../mk/system/JsbSystem";
+import { DataEventId } from "../../data/GameData";
 
 
 const { ccclass, property } = cc._decorator;
@@ -102,7 +103,7 @@ export default class MoreGameNormalItem extends cc.Component {
         if (this.cool) {
             return
         }
-
+        mk.data.sendDataEvent(DataEventId.hutuiFunction,"互推格子位下载");
         this.cool = true
         this.scheduleOnce(() => {
             this.cool = false

+ 2 - 1
assets/script/game/module/moreGame/MoreGamePicItem.ts

@@ -3,6 +3,7 @@
  * @author kaka
  */
 import JsbSystem from "../../../mk/system/JsbSystem";
+import { DataEventId } from "../../data/GameData";
 
 const { ccclass, property } = cc._decorator;
 
@@ -77,7 +78,7 @@ export default class MoreGamePicItem extends cc.Component {
         if (this.cool) {
             return
         }
-
+        mk.data.sendDataEvent(DataEventId.hutuiFunction,"互推推荐位banner下载");
         this.cool = true
         this.scheduleOnce(() => {
             this.cool = false

+ 2 - 1
assets/script/game/module/moreGame/MoreGamePopNode.ts

@@ -4,6 +4,7 @@
  */
 
 import JsbSystem from "../../../mk/system/JsbSystem";
+import { DataEventId } from "../../data/GameData";
 
 
 const { ccclass, property } = cc._decorator;
@@ -66,7 +67,7 @@ export default class MoreGamePopNode extends cc.Component {
         }
 
         this.cool = true
-
+        mk.data.sendDataEvent(DataEventId.hutuiFunction,"互推插屏下载");
         if (this.data.appType == 1) {
             if (!JsbSystem.ifCanStartGame(this.data.packageName, true)) {
                 gData.moreGame.createNewTask(this.data)

+ 2 - 1
assets/script/game/module/pigBank/PigBank.ts

@@ -1,5 +1,5 @@
 import JsbSystem from "../../../mk/system/JsbSystem";
-import { GameProp } from "../../data/GameData";
+import { DataEventId, GameProp } from "../../data/GameData";
 
 const { ccclass, property } = cc._decorator;
 /**
@@ -94,6 +94,7 @@ export default class PigBank extends cc.Component {
             JsbSystem.WxAuth();
             return;
         }
+        mk.data.sendDataEvent(DataEventId.jarWithDrawal,"存钱罐提现成功");
         gData.pigbank.cashOP();
         mk.ui.closePanel(this.node.name);
     }

+ 2 - 1
assets/script/game/module/redBagCash/RedBagCashItem.ts

@@ -1,4 +1,4 @@
-import { RewardState } from "../../data/GameData";
+import { DataEventId, RewardState } from "../../data/GameData";
 import { CDataType } from "../../data/module/RedBagCashData";
 
 const { ccclass, property } = cc._decorator;
@@ -85,6 +85,7 @@ export default class RedBagCashItem extends cc.Component {
             mk.tip.pop('请按顺序提现');
             return;
         }
+        mk.data.sendDataEvent(DataEventId.commonWithDrawal,"常规提现-红包币提现成功");
         gData.redBagCash.cashOP();
     }
 

+ 13 - 0
assets/script/game/module/setting/Setting.ts

@@ -1,3 +1,4 @@
+import Util from "../../../before/util/Util";
 import JsbSystem from "../../../mk/system/JsbSystem";
 import Rule from "./Rule";
 
@@ -38,6 +39,8 @@ export default class Setting extends cc.Component {
         console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
         this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);// 14 
         this.lbl_nickname.string = gData.wechatData.nickName;
+        this.lbl_version.string = gData.appData.appVersion;
+
         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);
@@ -47,6 +50,7 @@ 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;
     }
 
@@ -73,7 +77,16 @@ export default class Setting extends cc.Component {
     }
 
     clickUpdate() {
+        mk.audio.playEffect("button");
 
+        let installVersion = gData.appData.installVersion
+        let compare = Util.versionCompareHandle(gData.appData.appVersion, installVersion)
+        if (compare < 0) {
+            mk.ui.openPanel('module/forceUpdate/forceUpdate');
+        }
+        else {
+            mk.tip.pop('当前已是最新版本')
+        }
     }
 
     /** 点击微信授权 */

+ 6 - 1
assets/script/game/module/sign/Sign.ts

@@ -1,7 +1,7 @@
 import JsbSystem from "../../../mk/system/JsbSystem";
 import TableView from "../../component/TableView";
 import { AdFun } from "../../data/AdData";
-import { RewardType } from "../../data/GameData";
+import { DataEventId, RewardType, VideoAdType } from "../../data/GameData";
 
 /**
  * 签到界面
@@ -77,11 +77,16 @@ export default class Sign extends cc.Component {
                 return;
             }
         }
+        mk.ad.videoAdType = VideoAdType.Sign;
         // 看广告
         mk.ad.watchAd((success: boolean) => {
             mk.console.log("watchAD:" + success);
             if (success) {
                 gData.adData.watchVideo(AdFun.sign);
+                //FC:埋点
+                if (gData.sign.c_sign[index_old].rewardType === RewardType.rmb) {
+                    mk.data.sendDataEvent(DataEventId.signWithDrawal, "签到提现成功");
+                }
                 mk.ad.destroyNativeAd();
             }
         });

+ 2 - 0
assets/script/game/module/turntable/Turnable.ts

@@ -1,5 +1,6 @@
 import BtnClosePanel from "../../component/BtnClosePanel";
 import { AdFun } from "../../data/AdData";
+import { VideoAdType } from "../../data/GameData";
 import TurnableItem from "./TurnableItem";
 
 const { ccclass, property } = cc._decorator;
@@ -62,6 +63,7 @@ export default class Turnable extends cc.Component {
     /** 点击抽奖 */
     clickDraw() {
         if (gData.turnable.leftTimes > 0) {
+            mk.ad.videoAdType = VideoAdType.Turntable;
             mk.ad.watchAd((success: boolean) => {
                 mk.console.log("watchAD:" + success);
                 if (success) {

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

@@ -1,3 +1,4 @@
+import { DataEventId, VideoAdType } from "../../../../../game/data/GameData";
 import { zgSingleton } from "../../zgSingleton";
 import ATSDKMgr, { AdPlayStateType } from "./ATSDKMgr";
 
@@ -108,7 +109,7 @@ export class ATRewardVideo extends zgSingleton {
         //     data.network_firm_id, data.adsource_id, data.adsource_index, data.adsource_price,
         //     data.adsource_isheaderbidding, data.publisher_revenue, data.precision, data.ecpm_level);
         gData.adData.updateData(placementId, data);
-
+        mk.data.sendDataEvent(DataEventId.video_init, mk.ad.videoAdType);
         this.reawardAdState = RewardAdState.Unload;
         //点击关闭的时候重新加载(亲测,即使在start这边 加载 也是在点击关闭时候才返回成功)
         //this.loadAd();
@@ -161,6 +162,7 @@ export class ATRewardVideo extends zgSingleton {
             //     data.adsource_isheaderbidding, data.publisher_revenue, data.precision, data.ecpm_level);
 
             ATSDKMgr.getInstance().watchVideoAdCallBack(AdPlayStateType.WatchEnd);
+            mk.data.sendDataEvent(DataEventId.video_end, mk.ad.videoAdType);
         }
         else {
             ATSDKMgr.getInstance().watchVideoAdCallBack(AdPlayStateType.Cancel);

+ 3 - 1
assets/script/mk/system/AdSystem.ts

@@ -1,3 +1,4 @@
+import { VideoAdType } from "../../game/data/GameData";
 import { IADSDKMgr } from "../sdk/ad/IADSDKMgr";
 import JsbSystem from "./JsbSystem";
 
@@ -21,7 +22,8 @@ export default class AdSystem {
 
     /** 是否显示广告 */
     public ifShowAd: boolean = true;
-
+    /** 视频广告类型 */
+    public videoAdType:VideoAdType = VideoAdType.Null;
     /** 视频广告回调 */
     public videoAdcallBack: Function = null;
 

+ 13 - 2
assets/script/mk/system/DataSystem.ts

@@ -1,11 +1,22 @@
+import JsbSystem from "./JsbSystem";
+
 /**
  * @description 数据管理类
  * @author 邹勇
  */
 export default class DataSystem {
     constructor() {
-        
+
     }
 
-    
+    /**
+     * 发生数据事件
+     * @param eventId 事件Id
+     * @param des     事件内容
+     */
+    public sendDataEvent(eventId: string, des: string) {
+        if (eventId && des) {
+            JsbSystem.sendEvent(eventId, des);
+        }
+    }
 }

+ 2 - 1
assets/script/mk/system/GuideSystem.ts

@@ -1,4 +1,4 @@
-import { GameProp } from "../../game/data/GameData";
+import { DataEventId, GameProp } from "../../game/data/GameData";
 import { OpenActionType } from "./UISystem";
 
 
@@ -37,6 +37,7 @@ export default class GuideSystem {
         if (guide == null) {
             id = 9999;
         }
+       
         gData.gameData.setProp(GameProp.guideID, id);
     }
 

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


+ 7 - 9
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build.gradle

@@ -7,11 +7,11 @@ android {
     buildToolsVersion PROP_BUILD_TOOLS_VERSION
 
     defaultConfig {
-        applicationId "com.aries.qsllx.mz"
+        applicationId PACKAGE_NAME
         minSdkVersion PROP_MIN_SDK_VERSION
         targetSdkVersion PROP_TARGET_SDK_VERSION
-        versionCode 1
-        versionName "1.0"
+        versionCode VERSION_CODE.toInteger()
+        versionName VERSION_NAME.toString()
         multiDexEnabled true
         ndk {
             abiFilters 'armeabi-v7a'
@@ -62,12 +62,10 @@ android {
     signingConfigs {
 
        release {
-            if (project.hasProperty("RELEASE_STORE_FILE")) {
-                storeFile file(RELEASE_STORE_FILE)
-                storePassword RELEASE_STORE_PASSWORD
-                keyAlias RELEASE_KEY_ALIAS
-                keyPassword RELEASE_KEY_PASSWORD
-            }
+           storeFile file(new File('./keystore/eliminate.keystore'))
+           storePassword RELEASE_STORE_PASSWORD
+           keyAlias RELEASE_KEY_ALIAS
+           keyPassword RELEASE_KEY_PASSWORD
         }
     }
 

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

@@ -10,9 +10,9 @@ UM_SECRET="";       //友盟秘钥
 WX_APP_ID="wxcf31f0e54f7fefda"; //微信appid
 MY_APP_NAME=\u5929\u5929\u7231\u6d88\u6d88
 PACKAGE_NAME=com.aries.qsllx.mz
-VERSION_NAME=1.0.0
-VERSION_CODE=1
+VERSION_NAME=1.0.1
+VERSION_CODE=2
 TOPON="a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313"; //巨量渠道topon的 AppId,AppSecreate,激励视频,插屏,信息流,全屏开屏
-APP_CONFIG_CODE="1.0.0";
+APP_CONFIG_CODE="1.0.0"
 
 

BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/keystore/eliminate.keystore


+ 1 - 1
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/release/output.json

@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"EasyEliminate-release.apk","fullName":"release","baseName":"release"},"path":"EasyEliminate-release.apk","properties":{}}]
+[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"EasyEliminate-release.apk","fullName":"release","baseName":"release"},"path":"EasyEliminate-release.apk","properties":{}}]

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

@@ -6,6 +6,7 @@ import android.content.Context;
 import android.util.Log;
 
 import org.cocos2dx.javascript.AppActivity;
+import org.cocos2dx.javascript.thirdSdk.thinkingdata.TDSDKMgr;
 import org.cocos2dx.javascript.util.DeviceUtil;
 import org.cocos2dx.lib.Cocos2dxJavascriptJavaBridge;
 
@@ -108,15 +109,13 @@ public class ThirdSdkMgr {
     //埋点相关---------------------------------------------------------------------------------------
     /**
      * 埋点
-     * @param BeventID
      * @param eventID
      * @param des
      */
-    public static void sendEvent(String BeventID, String eventID, String des){
-
+    public static void sendEvent(String eventID, String des){
+        TDSDKMgr.getInstance().setTAEvent(eventID,des);
     }
 
-
     //系统相关---------------------------------------------------------------------------------------
     /**
      * 复制到剪贴板

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

@@ -6594,7 +6594,7 @@ return a > 3 && r && Object.defineProperty(e, n, r), r;
 Object.defineProperty(n, "__esModule", {
 value: !0
 });
-var r = t("../../../before/util/Util"), c = t("../../../mk/system/JsbSystem"), s = t("../../data/AppData"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
+var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AppData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
 i(e, t);
 function e() {
 var e = null !== t && t.apply(this, arguments) || this;
@@ -6615,9 +6615,18 @@ mk.audio.playEffect("ef_button_click");
 this.btnSure.active = !1;
 this.btnCancel.active = !1;
 this.fileProgress.node.parent.active = !0;
-var e = gData.appData.installUrl, n = e.split("/"), o = n[n.length - 1], i = r.default.checkHasApk(o);
-"" != i ? c.default.installApk(i) : c.default.downFile2Local(e, o, function(t) {
-c.default.installApk(t);
+var e = gData.appData.installUrl, n = e.split("/"), o = n[n.length - 1];
+console.log("apkName  ", o);
+var i = o.replace(".apk", "");
+if (r.default.isFileExist(i)) {
+console.log("installUrl  ", i);
+r.default.installApk(i);
+return null;
+}
+r.default.downFile2Local(e, o, function() {
+setTimeout(function() {
+r.default.installApk(i);
+}, 1);
 }, function() {
 mk.tip.pop("下载失败,请检查网络后重试");
 t.fileProgress.node.parent.active = !1;
@@ -6635,26 +6644,25 @@ this.labPro.string = Math.floor(100 * t) + "%";
 this.fileProgress.fillRange = t;
 };
 e.prototype.clickSkip = function() {
-mk.audio.playEffect(l.AUDIO_TYPE.button);
+mk.audio.playEffect(s.AUDIO_TYPE.button);
 mk.ui.closePanel(this.node.name);
-gData.appData.updateState = s.UpdateState.ForceUpdateFinish;
+gData.appData.updateState = c.UpdateState.ForceUpdateFinish;
 };
 e.prototype.setText = function() {
 this.labUpdate.string = gData.appData.updateDes;
 this.labFix.string = gData.appData.fixDes;
 };
-a([ d(cc.Label) ], e.prototype, "labUpdate", void 0);
-a([ d(cc.Label) ], e.prototype, "labFix", void 0);
-a([ d(cc.Node) ], e.prototype, "btnSure", void 0);
-a([ d(cc.Node) ], e.prototype, "btnCancel", void 0);
-a([ d(cc.Sprite) ], e.prototype, "fileProgress", void 0);
-a([ d(cc.Label) ], e.prototype, "labPro", void 0);
-return a([ p ], e);
+a([ p(cc.Label) ], e.prototype, "labUpdate", void 0);
+a([ p(cc.Label) ], e.prototype, "labFix", void 0);
+a([ p(cc.Node) ], e.prototype, "btnSure", void 0);
+a([ p(cc.Node) ], e.prototype, "btnCancel", void 0);
+a([ p(cc.Sprite) ], e.prototype, "fileProgress", void 0);
+a([ p(cc.Label) ], e.prototype, "labPro", void 0);
+return a([ u ], e);
 }(cc.Component);
-n.default = h;
+n.default = d;
 cc._RF.pop();
 }, {
-"../../../before/util/Util": "Util",
 "../../../mk/system/JsbSystem": "JsbSystem",
 "../../data/AppData": "AppData",
 "../../data/GameData": "GameData"
@@ -9852,6 +9860,7 @@ return e;
 e.prototype.onLoad = function() {};
 e.prototype.start = function() {
 if (null != gData.guideData.crtID) {
+this.reset();
 this.guides = gData.guideData.getGuidesByID(gData.guideData.crtID);
 this.crtStep = -1;
 this.nextStep();
@@ -9912,7 +9921,7 @@ if (null != n && null != o && null != i && null != a) if (0 == this.crtGuide.dis
 this.node_bg.x = this.node_bg.y = this.node_display.x = this.node_display.y = 0;
 this.node_display.width = this.node.width;
 this.node_display.height = this.node.height;
-cc.tween(this.node_display).to(.1, {
+cc.tween(this.node_display).to(.2, {
 x: n,
 y: o,
 width: i,
@@ -9928,7 +9937,7 @@ this.node_bg.x = this.node_display.x = n;
 this.node_bg.y = this.node_display.y = o;
 this.node_display.width = this.node_display.height = this.node_bg.width = this.node_bg.height = 2 * this.node.height;
 var l = this.crtGuide.display_type;
-cc.tween(this.node_display).to(.1, {
+cc.tween(this.node_display).to(.2, {
 width: l,
 height: l
 }).start();
@@ -9937,7 +9946,8 @@ if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
 r = this.crtGuide.dialog_pos.split(":");
 for (var u = this.node_dialog.getComponent(cc.Widget), p = 0; p < this.widgets.length; p++) u[this.widgets[p]] = "" == r[p] ? null : parseInt(r[p]);
 } else {
-r = this.crtGuide.dialog_pos1.split(",");
+for (r = this.crtGuide.dialog_pos1.split(","), u = this.node_dialog.getComponent(cc.Widget), 
+p = 0; p < this.widgets.length; p++) u[this.widgets[p]] = null;
 this.node_dialog.x = n + parseInt(r[0]);
 this.node_dialog.y = o + parseInt(r[1]);
 }
@@ -11607,9 +11617,9 @@ return c(this, function(n) {
 switch (n.label) {
 case 0:
 t = {
-appId: "wxcf31f0e54f7fefda",
-channel: "1",
-version: "1.0.0"
+appId: gData.appData.appId,
+channel: gData.appData.tfChannel,
+version: gData.appData.appVersion
 };
 return [ 4, mk.http.sendRequest("getForceVersionInfo", "POST", JSON.stringify(t), !1, !1) ];
 
@@ -12709,7 +12719,7 @@ var t = mk.math.random(0, this.moreGameList.normal.length - 1);
 return this.moreGameList.normal[t];
 };
 e.prototype.popMoreGamePopNode = function() {
-mk.guide.isGuiding || 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() {
@@ -17230,7 +17240,7 @@ done: !0
 Object.defineProperty(n, "__esModule", {
 value: !0
 });
-var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
+var s = t("../../../before/util/Util"), l = t("../../../mk/system/JsbSystem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
 i(e, t);
 function e() {
 var e = null !== t && t.apply(this, arguments) || this;
@@ -17259,6 +17269,7 @@ 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);
 this.lbl_nickname.string = gData.wechatData.nickName;
+this.lbl_version.string = gData.appData.appVersion;
 t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
 e = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
 n = this.img_music;
@@ -17285,7 +17296,7 @@ return [ 2 ];
 };
 e.prototype.clickCopy = function() {
 mk.audio.playEffect("button");
-s.default.setClipboard(gData.wechatData.unionid);
+l.default.setClipboard(gData.wechatData.unionid);
 mk.tip.pop("复制成功");
 };
 e.prototype.clickMusic = function() {
@@ -17326,11 +17337,15 @@ return [ 2 ];
 });
 });
 };
-e.prototype.clickUpdate = function() {};
+e.prototype.clickUpdate = function() {
+mk.audio.playEffect("button");
+var t = gData.appData.installVersion;
+s.default.versionCompareHandle(gData.appData.appVersion, t) < 0 ? mk.ui.openPanel("module/forceUpdate/forceUpdate") : mk.tip.pop("当前已是最新版本");
+};
 e.prototype.onClickWxAuth = function() {
 if (!gData.loginData.isAuth) {
 mk.ui.closePanel(this.node.name);
-s.default.WxAuth();
+l.default.WxAuth();
 this.onClickClose();
 }
 };
@@ -17348,35 +17363,36 @@ e.prototype.onClickClose = function() {
 mk.ad.destroyNativeAd();
 mk.ad.checkShowInterByChance();
 };
-a([ p({
+a([ d({
 type: cc.Sprite,
 displayName: "头像"
 }) ], e.prototype, "img_head", void 0);
-a([ p({
+a([ d({
 type: cc.Label,
 displayName: "昵称"
 }) ], e.prototype, "lbl_nickname", void 0);
-a([ p({
+a([ d({
 type: cc.Label,
 displayName: "ID"
 }) ], e.prototype, "lbl_id", void 0);
-a([ p({
+a([ d({
 type: cc.Sprite,
 displayName: "音乐开关"
 }) ], e.prototype, "img_music", void 0);
-a([ p({
+a([ d({
 type: cc.Sprite,
 displayName: "音效开关"
 }) ], e.prototype, "img_effect", void 0);
-a([ p({
+a([ d({
 type: cc.Label,
 displayName: "版本号"
 }) ], e.prototype, "lbl_version", void 0);
-return a([ u ], e);
+return a([ p ], e);
 }(cc.Component);
-n.default = d;
+n.default = h;
 cc._RF.pop();
 }, {
+"../../../before/util/Util": "Util",
 "../../../mk/system/JsbSystem": "JsbSystem"
 } ],
 SignData: [ function(t, e, n) {

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

@@ -7,7 +7,7 @@
         "http://",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTest/baseRemote/"
     ],
-    "buildTime": 1625021704799,
-    "genTime": 1625021704799,
+    "buildTime": 1625045088976,
+    "genTime": 1625045088976,
     "genVersion": null
 }

+ 1 - 1
settings/project.json

@@ -36,6 +36,6 @@
       "enable": false
     }
   },
-  "last-module-event-record-time": 1624417441258,
+  "last-module-event-record-time": 1625031035708,
   "start-scene": "6f522a54-3e0e-404d-a06c-bec8b4307c95"
 }

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików