wuwangdong пре 4 година
родитељ
комит
3688e02530
35 измењених фајлова са 375 додато и 172 уклоњено
  1. 1 1
      assets/resources/data/guide_data.json
  2. 6 6
      assets/resources/game/prefab/game.prefab
  3. 0 0
      assets/resources/module/login/hot/project.manifest
  4. 70 68
      assets/resources/module/speedUpUI/productReward.prefab
  5. 11 3
      assets/script/before/main/FactoryIcon.ts
  6. 28 4
      assets/script/before/main/FarmIcon.ts
  7. 10 2
      assets/script/before/main/PastureIcon.ts
  8. 19 2
      assets/script/before/view/data/HarvestData.ts
  9. 15 3
      assets/script/before/view/ui/HarvestPanel.ts
  10. 13 7
      assets/script/game/data/GameData.ts
  11. 1 1
      assets/script/game/data/module/BlessingBagData.ts
  12. 2 0
      assets/script/game/data/module/CashProData.ts
  13. 1 1
      assets/script/game/data/module/GradeRewardData.ts
  14. 9 7
      assets/script/game/data/module/SafeDepositBoxData.ts
  15. 1 1
      assets/script/game/data/module/SignData.ts
  16. 2 2
      assets/script/game/data/module/WalletCashOutData.ts
  17. 1 0
      assets/script/game/game/FunBtns.ts
  18. 19 9
      assets/script/game/game/Game.ts
  19. 10 0
      assets/script/game/module/cashPro/CashPro.ts
  20. 1 1
      assets/script/game/module/redBagTask/RedBagTask.ts
  21. 14 2
      assets/script/game/module/speedUpUI/ProductReward.ts
  22. 1 0
      assets/script/mk/system/AdSystem.ts
  23. 2 1
      assets/script/mk/system/GuideSystem.ts
  24. BIN
      build/jsb-link/assets/main/index.jsc
  25. 0 0
      build/jsb-link/assets/resources/config.json
  26. 0 0
      build/jsb-link/assets/resources/import/23/2301f946-ef9d-4d93-b296-1f8ff5b307d3.json
  27. 0 0
      build/jsb-link/assets/resources/import/a2/a2f8ad6a-6054-4b3e-8202-7e9e1975fad9.json
  28. 0 0
      build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json
  29. 0 0
      build/jsb-link/assets/resources/native/a8/a81eb395-718d-4f3b-958c-cb871f7dd5fa.manifest
  30. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser
  31. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/res/drawable/splash_icon.png
  32. 136 49
      build/jsb-link/js backups (useful for debugging)/main.index.js
  33. 2 2
      packages-hot-update/cfg.json
  34. 0 0
      packages-hot-update/manifest/project.manifest
  35. BIN
      packages-hot-update/versions/ver_1_0.11.zip

+ 1 - 1
assets/resources/data/guide_data.json

@@ -108,7 +108,7 @@
 		"displayRect": "",
 		"clickRect": "主界面层/game/功能按钮/底部按钮/富翁银行",
 		"finger": "",
-		"lagNext": "",
+		"lagNext": "0.2",
 		"continue": "false"
 	}
 ]

+ 6 - 6
assets/resources/game/prefab/game.prefab

@@ -5971,7 +5971,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "6aYmVgFRdBCKfBHi4A5OLn",
+    "fileId": "35o8w903tAuIulRweVwJu2",
     "sync": false
   },
   {
@@ -6183,7 +6183,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "89TRgL25hCqpOxW60sMd4w",
+    "fileId": "86DE0zHgpGaoMUtlAV1kZ8",
     "sync": false
   },
   {
@@ -6292,7 +6292,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "20Plav+KFLrpQiXTszYJts",
+    "fileId": "c0AtsJdU1JeYkD/aipqRYU",
     "sync": false
   },
   {
@@ -10651,8 +10651,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "订单提现",
-    "_N$string": "订单提现",
+    "_string": "订单领奖",
+    "_N$string": "订单领奖",
     "_fontSize": 26,
     "_lineHeight": 40,
     "_enableWrapText": true,
@@ -14092,7 +14092,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "62Mm9YdQlPBLf3z58DfugE",
+    "fileId": "43mbwriuVNYYCTfX3EygIf",
     "sync": false
   },
   {

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
assets/resources/module/login/hot/project.manifest


+ 70 - 68
assets/resources/module/speedUpUI/productReward.prefab

@@ -1040,6 +1040,9 @@
       },
       {
         "__id__": 31
+      },
+      {
+        "__id__": 34
       }
     ],
     "_active": true,
@@ -1064,7 +1067,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 288.49,
+      "width": 385.28,
       "height": 50
     },
     "_anchorPoint": {
@@ -1076,7 +1079,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        -70,
+        2,
         53,
         0,
         0,
@@ -1140,7 +1143,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        -79.245,
+        -127.63999999999999,
         0,
         0,
         0,
@@ -1248,7 +1251,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        12.999999999999996,
+        -35.39499999999998,
         -5,
         0,
         0,
@@ -1324,19 +1327,15 @@
     "_parent": {
       "__id__": 24
     },
-    "_children": [
-      {
-        "__id__": 32
-      }
-    ],
+    "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 35
+        "__id__": 32
       }
     ],
     "_prefab": {
-      "__id__": 36
+      "__id__": 33
     },
     "_opacity": 255,
     "_color": {
@@ -1348,7 +1347,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 104,
+      "width": 52,
       "height": 50.4
     },
     "_anchorPoint": {
@@ -1360,7 +1359,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        92.245,
+        17.85000000000002,
         0,
         0,
         0,
@@ -1386,21 +1385,65 @@
     "_id": ""
   },
   {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 31
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "次,",
+    "_N$string": "次,",
+    "_fontSize": 26,
+    "_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__": "a2f8ad6a-6054-4b3e-8202-7e9e1975fad9"
+    },
+    "fileId": "173fnhaXxM9pe1r/UbhHri",
+    "sync": false
+  },
+  {
     "__type__": "cc.Node",
     "_name": "任务描述",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 31
+      "__id__": 24
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 33
+        "__id__": 35
       }
     ],
     "_prefab": {
-      "__id__": 34
+      "__id__": 36
     },
     "_opacity": 255,
     "_color": {
@@ -1417,14 +1460,14 @@
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
-      "x": 0.5,
+      "x": 0,
       "y": 0.5
     },
     "_trs": {
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        122.895,
+        48.85000000000002,
         0,
         0,
         0,
@@ -1454,7 +1497,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 32
+      "__id__": 34
     },
     "_enabled": true,
     "_materials": [
@@ -1490,51 +1533,7 @@
     "asset": {
       "__uuid__": "a2f8ad6a-6054-4b3e-8202-7e9e1975fad9"
     },
-    "fileId": "f7Jr0yRdNNtb0Jxu6fTL43",
-    "sync": false
-  },
-  {
-    "__type__": "cc.Label",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 31
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_string": "次,立即",
-    "_N$string": "次,立即",
-    "_fontSize": 26,
-    "_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__": "a2f8ad6a-6054-4b3e-8202-7e9e1975fad9"
-    },
-    "fileId": "173fnhaXxM9pe1r/UbhHri",
+    "fileId": "1aMjOpAjtJdJrNRzkBJyYB",
     "sync": false
   },
   {
@@ -1547,7 +1546,7 @@
     "_enabled": true,
     "_layoutSize": {
       "__type__": "cc.Size",
-      "width": 288.49,
+      "width": 385.28,
       "height": 50
     },
     "_resize": 1,
@@ -2046,7 +2045,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 260,
+      "width": 234,
       "height": 50.4
     },
     "_anchorPoint": {
@@ -2098,8 +2097,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "订单已完成,领取红包",
-    "_N$string": "订单已完成,领取红包",
+    "_string": "订单完成,点击领奖",
+    "_N$string": "订单完成,点击领奖",
     "_fontSize": 26,
     "_lineHeight": 40,
     "_enableWrapText": true,
@@ -4136,6 +4135,9 @@
     "lbl_orderValue": {
       "__id__": 52
     },
+    "lbl_rewardDes": {
+      "__id__": 35
+    },
     "_id": ""
   },
   {

+ 11 - 3
assets/script/before/main/FactoryIcon.ts

@@ -95,8 +95,12 @@ export class FactoryIcon extends cc.Component {
     private clean(): void {
         this.showGroup.removeAllChildren();
     }
-
+    
+    isCanTouch = true;
     public async onTouch() {
+        if(!this.isCanTouch){
+            return;
+        }
         switch (this.data.state) {
             case FactroyState.Lock:
                 let arr = gData.gameData.getProductArrByType(this.tab);
@@ -117,7 +121,11 @@ export class FactoryIcon extends cc.Component {
                 break;
             case FactroyState.Ripe:
                 gData.factorySystem.currSelectFactory = this;
-                gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+                gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 2);
+                this.isCanTouch = false;
+                setTimeout(()=>{
+                    this.isCanTouch = true;
+                }, 1000);
                 break;
             case FactroyState.Sick:
                 // mk.tip.pop(`生虫了!`);
@@ -207,7 +215,7 @@ export class FactoryIcon extends cc.Component {
     public canHarvest() {
         this.getComponent(MoveToCenter).move();
         gData.factorySystem.currSelectFactory = this;
-        gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+        gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 2);
     }
 
     public canClearSick() {

+ 28 - 4
assets/script/before/main/FarmIcon.ts

@@ -116,7 +116,11 @@ export class FarmIcon extends cc.Component {
         }
     }
 
+    isCanTouch = true
     public async onTouch() {
+        if (!this.isCanTouch) {
+            return;
+        }
         switch (this.data.state) {
             case FarmState.Lock:
                 mk.tip.pop(`点击拓建即可解锁农田`);
@@ -134,7 +138,11 @@ export class FarmIcon extends cc.Component {
                 break;
             case FarmState.Ripe:
                 gData.farmSystem.currSelectFarm = this;
-                gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, true);
+                gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node);
+                this.isCanTouch = false;
+                setTimeout(() => {
+                    this.isCanTouch = true;
+                }, 1000);
                 break;
             case FarmState.Sick:
                 // mk.tip.pop(`生虫了!`);
@@ -199,7 +207,16 @@ export class FarmIcon extends cc.Component {
             return flyRed;
         }
         else {
-            mk.tip.pop('农田已满,无法继续生产');
+            gData.gameData.nextMake = null;
+            gData.gameData.setNextProduct(false);
+            if(gData.gameData.nextType == 0){
+                mk.tip.pop('农田已满,无法继续生产');
+                return false;
+            }else{
+               let flyRed =  await gData.gameData.makeProduct();
+               return flyRed;
+            }
+            //mk.tip.pop('农田已满,无法继续生产');
             return false;
         }
     }
@@ -247,8 +264,15 @@ export class FarmIcon extends cc.Component {
     }
 
     public canHarvest() {
+        if(!this.isCanTouch){
+            return;
+        }
         gData.farmSystem.currSelectFarm = this;
-        gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, true);
+        gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node);
+        this.isCanTouch = false;
+        setTimeout(() => {
+            this.isCanTouch = true;
+        }, 1000);
     }
 
     public canClearSick() {
@@ -260,7 +284,7 @@ export class FarmIcon extends cc.Component {
     public clickGuideBtn() {
         if (mk.guide.isGuiding()) {
             //gData.farmSystem.currSelectFarm = this;
-            gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, true, false, true);
+            gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, 0, false, true);
         }
     }
 }

+ 10 - 2
assets/script/before/main/PastureIcon.ts

@@ -146,7 +146,11 @@ export default class PastureIcon extends cc.Component {
         this.showGroup.removeAllChildren();
     }
 
+    isCanTouch = true;
     public async onTouch() {
+        if(!this.isCanTouch){
+            return;
+        }
         switch (this.data.state) {
             case PastureState.Lock:
                 let config = gData.gameData.getProductMap(this.data.productID);
@@ -178,7 +182,11 @@ export default class PastureIcon extends cc.Component {
                 mk.ui.openPanel('module/speedUpUI/speedUp');
                 break;
             case PastureState.Ripe:
-                gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+                gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 1);
+                this.isCanTouch = false;
+                setTimeout(()=>{
+                    this.isCanTouch = true;
+                }, 1000);
                 break;
             case PastureState.Sick:
                 // mk.tip.pop(`生虫了!`);
@@ -303,7 +311,7 @@ export default class PastureIcon extends cc.Component {
 
     public canHarvest() {
         this.getComponent(MoveToCenter).move();
-        gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+        gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 1);
     }
 
     public canClearSick() {

+ 19 - 2
assets/script/before/view/data/HarvestData.ts

@@ -20,17 +20,20 @@ export default class HarvestData extends Data {
     isMatchOrder = false;
     //是否是点击一键生产按钮
     isTouchBtn = false;
-    openPanel(configID, plantID, call, node, isCrops = false, isTouchBtn =false, isTeach = false) {
+    isCrops_ = 0;
+    //isCrops 0 农作物,1动物,2商品
+    openPanel(configID, plantID, call, node, isCrops = 0, isTouchBtn =false, isTeach = false) {
 
         this.configID = configID;
         this.plantID = plantID;
         this.call = call;
         this.node_fly = node;
         this.isTouchBtn = isTouchBtn;
+        this.isCrops_ = isCrops;
         this.config = gData.gameData.getProductMap(this.plantID);
         //this.judgeIsMatchOrder();
 
-        if(!isTeach && !isCrops)
+        if(!isTeach && isCrops != 0)
         {
             let isTeaching = mk.guide.isGuiding();
             let rand = Math.random();
@@ -70,6 +73,12 @@ export default class HarvestData extends Data {
         gData.reward.getReward(world_Pos);
         //mk.ui.openPanel('module/reward/reward');
         gData.harvestData.call = null;
+
+       if(this.isCrops_ == 1){
+            mk.data.sendDataEvent(DataEventId.button_click, "动物超级加倍收获");
+        }else if(this.isCrops_ == 2){
+            mk.data.sendDataEvent(DataEventId.button_click, "商品超级加倍收获");
+        }
     }
 
     async getNormalReward() {
@@ -142,6 +151,14 @@ export default class HarvestData extends Data {
                 mk.data.sendDataEvent(DataEventId.htRedBag_scene, "点击可收获");
             }
         }
+
+        if(this.isCrops_ == 0){
+            mk.data.sendDataEvent(DataEventId.button_click, "农作物普通收获");
+        }else if(this.isCrops_ == 1){
+            mk.data.sendDataEvent(DataEventId.button_click, "动物普通收获");
+        }else if(this.isCrops_ == 2){
+            mk.data.sendDataEvent(DataEventId.button_click, "商品普通收获");
+        }
     }
 
     public judgeIsMatchOrder()

+ 15 - 3
assets/script/before/view/ui/HarvestPanel.ts

@@ -11,7 +11,7 @@ const { ccclass, property } = cc._decorator;
 export default class HarvestPanel extends cc.Component {
     @property({ type: cc.Label }) lbl_des: cc.Label = null;
     @property({ type: cc.RichText }) lbl_max: cc.RichText = null;
-    @property({type: cc.Node}) node_hb: cc.Node = null;
+    @property({ type: cc.Node }) node_hb: cc.Node = null;
 
     start() {
         let data = gData.gameData.configs.CashCfg[0];
@@ -25,7 +25,7 @@ export default class HarvestPanel extends cc.Component {
         // gData.harvestData.config.picture
         //调用收获红包币接口
         mk.audio.playEffect("button");
-        
+
         gData.adData.checkShowFullInter(1, InterFullAdType.interstitial2_init_2);
 
         let data = { id: gData.harvestData.config.id };
@@ -48,6 +48,18 @@ export default class HarvestPanel extends cc.Component {
             let world_Pos = gData.harvestData.node_fly.parent.convertToWorldSpaceAR(gData.harvestData.node_fly.getPosition());
             gData.reward.getReward(world_Pos);
             //mk.ui.openPanel('module/reward/reward');
+
+            let str = "+" + response.data.redMoneyAddition / 100 + "";
+            let pos = mk.fly.node.convertToNodeSpaceAR(world_Pos);
+            let prefab = await mk.loader.load("game/prefab/flyHb", cc.Prefab);
+            let hand = cc.instantiate(prefab);
+            //hand.opacity = 0;
+            hand.zIndex = 1000;
+            hand.parent = mk.fly.node;
+            hand.setPosition(pos);
+            let lab_value = hand.getComponentInChildren(cc.Label);
+            lab_value.string = str;
+            cc.tween(hand).by(0.8, { y: 100 }).to(0.4, { opacity: 0 }).removeSelf().start();
         }
         mk.ui.closePanel('HarvestPanel');
     }
@@ -73,7 +85,7 @@ export default class HarvestPanel extends cc.Component {
         mk.ad.showNative();
 
         let pop = gData.adData.checkShowFullInter(4);
-        if(pop){
+        if (pop) {
             gData.moreGame.openType = 0;
             mk.data.sendDataEvent(DataEventId.htRedBag_scene, "点击可收获");
         }

+ 13 - 7
assets/script/game/data/GameData.ts

@@ -173,13 +173,7 @@ export class GameData {
             }
         }
 
-        data = {};
-        response = await mk.http.sendData('user/adShowConfig', data);
-        if (response.errcode != 0) {
-            return;
-        }
-        this.adShowConfig = response.data;
-        mk.console.logSingle("user/adShowConfig", response.data);
+        await this.uploadAverageEcpm();
         gData.adData.initEcpmData();
 
         // data = {};
@@ -198,6 +192,17 @@ export class GameData {
         this.dataFinish = true;
     }
 
+    public async uploadAverageEcpm(){
+        let response = await mk.http.sendData('user/adShowConfig', {});
+        if (response.errcode != 0) {
+            return;
+        }
+        this.adShowConfig = response.data;
+        mk.data.setTAEventUser(0, "average_ecpm", this.adShowConfig.average_ecpm);
+        
+        mk.console.logSingle("user/adShowConfig", response.data);
+    }
+
     private initConfigs(data) {
         // console.log('config  ', data);
         this.configs = data;
@@ -936,6 +941,7 @@ export class GameData {
                 let next2 = gData.factorySystem.nextFactoryExtra();
                 if (!next2) {
                     this.nextType = 0;
+                    //gData.gameData.nextMake = null;
                 }
                 else {
                     //this.nextType = 3;

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

@@ -129,7 +129,7 @@ export class BlessingBagData extends Data {
         gData.receiptNotice.receip_rmb = gData.blessingBag.rbNum;
         mk.ui.openPanel('module/newNotice/newNotice');
 
-        gData.safeDepositBoxData.updateQipao();
+        //gData.safeDepositBoxData.updateQipao();
         gData.cashNormal.getRecord();
         return response
     }

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

@@ -13,6 +13,8 @@ export default class CashProData {
 
     callBack: Function = null;
 
+    isOrderCashOut = false;
+
     openCashPro(money) {
         this.cashPro_money = money;
         this.init_load = true;

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

@@ -47,7 +47,7 @@ export class GradeRewardData extends Data {
         // gData.cashPro.init_success = true;
 
         gData.gameData.init_red_point = true;
-        gData.safeDepositBoxData.updateQipao();
+        //gData.safeDepositBoxData.updateQipao();
         gData.cashNormal.getRecord();
         return response
     }

+ 9 - 7
assets/script/game/data/module/SafeDepositBoxData.ts

@@ -108,14 +108,16 @@ export default class SafeDepositBoxData {
         //福利银行教学
         if(gData.gameData.richBankTeachTag){
             gData.gameData.richBankTeachTag = false;
-            let isOpenRichBankUI = mk.ui.isPopPanel();
+            
+            if(mk.guide.isGuideComplete()){
+                return;
+            }
+            mk.ui.closeAllUI();
             let times = gData.gameData.getProp(GameProp.cashTimes);
-            console.log(`=========${isOpenRichBankUI}===${times}=====${this.cashRecordData.length}====${this.cashRecordDataLength}`);
-            if(gData.gameData.funOpenData[13] == "1" && !isOpenRichBankUI && times >=gData.gameData.showRichBankIconLimit){
-                if(this.cashRecordData.length >= this.cashRecordDataLength){
-                    this.cashRecordDataLength = this.cashRecordData.length;
-                    this.isTeach =  mk.guide.open(13);
-                }
+            //let times = gData.gameData.playerProp.orderData.overTimes;
+            console.log(`=========${times}=====${this.cashRecordData.length}====${this.cashRecordDataLength}`);
+            if(gData.gameData.funOpenData[13] == "1" && times >=gData.gameData.showRichBankIconLimit){
+                this.isTeach =  mk.guide.open(13);
             }       
         }
     }

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

@@ -155,7 +155,7 @@ export class SignData extends Data {
             const rewardNum = Math.round(adData.videoRedMoney.videoRewardList[0].rewardNum * 100);
             gData.receiptNotice.receip_rmb = rewardNum;
             mk.ui.openPanel('module/newNotice/newNotice', OpenActionType.closeLast);
-            gData.safeDepositBoxData.updateQipao();
+            //gData.safeDepositBoxData.updateQipao();
             gData.cashNormal.getRecord();
         } else if (reward_data.rewardType === RewardType.pigRmb) {
             // 金猪现金

+ 2 - 2
assets/script/game/data/module/WalletCashOutData.ts

@@ -37,7 +37,7 @@ export class WalletCashOutData extends Data {
         gData.receiptNotice.receip_rmb = value;
         mk.ui.openPanel('module/newNotice/newNotice');
 
-        gData.safeDepositBoxData.updateQipao();
+        //gData.safeDepositBoxData.updateQipao();
         gData.cashNormal.getRecord();
         gData.gameData.doPointToXYLogic();
         //gData.gameData.addCashOutTimes();
@@ -99,7 +99,7 @@ export class WalletCashOutData extends Data {
             mk.ui.openPanel('module/newNotice/newNotice');
         }
 
-        gData.safeDepositBoxData.updateQipao();
+        //gData.safeDepositBoxData.updateQipao();
         gData.cashNormal.getRecord();
         mk.data.sendDataEvent(DataEventId.Sundry, '红包币提现成功');
         gData.gameData.doPointToXYLogic();

+ 1 - 0
assets/script/game/game/FunBtns.ts

@@ -66,6 +66,7 @@ export default class FunBtns extends cc.Component {
                 }
                 else if (i == 13 && data[i] == "1") {
                     let times = gData.gameData.getProp(GameProp.cashTimes);
+                    //let times = gData.gameData.playerProp.orderData.overTimes;
                     console.log(`cashTimes======${times}`);
                     if (!times || times < gData.gameData.showRichBankIconLimit) {
                         node_btn.active = false;

+ 19 - 9
assets/script/game/game/Game.ts

@@ -167,6 +167,10 @@ export default class Game extends cc.Component {
 
         this.initRefreshEvent();
 
+        if(gData.gameData.orderRewardType == 1){
+            this.node_showCash.active = false;
+            this.node_showRedMoney.active = true;
+        }
         if (gData.gameData.playerProp.orderData) {
             this.initOrderUI();
         } else {
@@ -193,11 +197,14 @@ export default class Game extends cc.Component {
         //     this.autoPopSign = false;        
         // }
         if (gData.gameData.funOpenData[11] == "1") {
-            let isTeach = mk.guide.open(10);
-            if (isTeach) {
-                mk.event.register("event_guide", this.initGuideEvent.bind(this), this);
-                //mk.guide.continueCallBack = this.judgeContinueTeach;
-            }
+            let isPopUi = mk.ui.isPopPanel();
+            if(!isPopUi){
+                let isTeach = mk.guide.open(10);
+                if (isTeach) {
+                    mk.event.register("event_guide", this.initGuideEvent.bind(this), this);
+                    //mk.guide.continueCallBack = this.judgeContinueTeach;
+                }
+            }  
         }
 
         let value = mk.storage.getStorage('loadingFinish');
@@ -607,6 +614,8 @@ export default class Game extends cc.Component {
 
             this.dpFlyRedAni();
         }
+
+        mk.data.sendDataEvent(DataEventId.button_click, "一键生产按钮");
     }
 
     public dpFlyRedAni(starPos: cc.Vec2 = null) {
@@ -1010,8 +1019,6 @@ export default class Game extends cc.Component {
         if (data) {
             //红包币
             if(gData.gameData.orderRewardType == 1){
-                this.node_showCash.active = false;
-                this.node_showRedMoney.active = true;
                 this.lbl_orderRedMoney.string = data.redMoneyAddition/100 + ""; 
             }else{
                 this.lbl_addCash.string = (data.cashMoney / 100).toFixed(2);
@@ -1111,6 +1118,7 @@ export default class Game extends cc.Component {
 
             gData.safeDepositBoxData.setCashRecordDataLength();
             //处理提现逻辑
+            gData.cashPro.isOrderCashOut = true;
             gData.cashPro.callBack = this.getRewardCallBack.bind(this);
             gData.receiptNotice.receip_rmb = addMoney;
             mk.ui.openPanel('module/newNotice/newNotice');
@@ -1166,8 +1174,10 @@ export default class Game extends cc.Component {
         this.showTips();
         gData.gameData.init_order = true;
         gData.gameData.checkTaskFinishUnLock();
-        gData.gameData.richBankTeachTag = true;
-        gData.safeDepositBoxData.updateQipao();
+        if(gData.gameData.orderRewardType == 2){
+            gData.gameData.richBankTeachTag = true;
+            gData.safeDepositBoxData.updateQipao();
+        }
         gData.cashNormal.getRecord();
 
         if (this.isStopFarm) {

+ 10 - 0
assets/script/game/module/cashPro/CashPro.ts

@@ -75,4 +75,14 @@ export default class CashPro extends cc.Component {
             gData.cashPro.callBack = null;
         }
     }
+
+    protected onDestroy(): void {
+
+        if(!gData.cashPro.isOrderCashOut){
+            gData.gameData.richBankTeachTag = true;
+            gData.safeDepositBoxData.updateQipao();
+        }else{
+            gData.cashPro.isOrderCashOut = false;
+        }    
+    }
 }

+ 1 - 1
assets/script/game/module/redBagTask/RedBagTask.ts

@@ -325,7 +325,7 @@ export default class RedBagTask extends cc.Component {
         gData.gameData.doPointToXYLogic();
         //gData.gameData.addCashOutTimes();
         gData.adData.checkPopCashFull();
-        gData.safeDepositBoxData.updateQipao();
+        //gData.safeDepositBoxData.updateQipao();
         gData.cashNormal.getRecord();
     }
 

+ 14 - 2
assets/script/game/module/speedUpUI/ProductReward.ts

@@ -31,6 +31,9 @@ export default class ProductReward extends cc.Component {
     @property({ type: cc.Label, displayName: '订单提现金额' })
     lbl_orderValue: cc.Label = null;
 
+    @property({ type: cc.Label, displayName: '奖励类型描述' })
+    lbl_rewardDes: cc.Label = null;
+
     private btnCanClick = true;
 
     start(){
@@ -154,9 +157,18 @@ export default class ProductReward extends cc.Component {
                         }, 0.2)
                     }
 
+                    if(gData.gameData.orderRewardType == 1){
+                        this.lbl_rewardDes.string = `领取${data.redMoneyAddition/100}红包币`;
+                    }
+
                 } else {
-                    let v = gData.gameData.playerProp.orderData.cashMoney;
-                    this.lbl_orderValue.string = "订单已完成,可提现" + (v/100).toFixed(2) + "元";
+                    // if(gData.gameData.orderRewardType == 1){
+                    //     let v = gData.gameData.playerProp.orderData.redMoneyAddition;
+                    //     this.lbl_orderValue.string = "订单已完成,可领取" + (v/100) + "红包币";
+                    // }else{
+                    //     let v = gData.gameData.playerProp.orderData.cashMoney;
+                    //     this.lbl_orderValue.string = "订单已完成,可提现" + (v/100).toFixed(2) + "元";
+                    // }
                     this.sp_taskProgress.fillRange = 1;
                     this.lbl_progress.string = `${allCount}/${allCount}`;
                     this.node_Uncomplete.active = false;

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

@@ -118,6 +118,7 @@ export default class AdSystem {
                 this.videoAdcallBack(true);
             }
             this.initLastTimeStamp();
+            gData.gameData.uploadAverageEcpm();
         }, 0)
     }
 

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

@@ -67,7 +67,8 @@ export default class GuideSystem {
      * @returns true 已完成
      */
     public isGuideComplete(): boolean {
-        if (!this.crtGuideID || this.crtGuideID === 9999) {
+        let id = gData.gameData.getProp(GameProp.guideID);
+        if (!this.crtGuideID || id === 9999) {
             return true;
         } else {
             return false;

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/23/2301f946-ef9d-4d93-b296-1f8ff5b307d3.json


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
build/jsb-link/assets/resources/import/a2/a2f8ad6a-6054-4b3e-8202-7e9e1975fad9.json


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json


Разлика између датотеке није приказан због своје велике величине
+ 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


BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/res/drawable/splash_icon.png


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

@@ -3265,6 +3265,7 @@ mk.data.setTAEventUser(1, "video_time", 1);
 mk.ui.scheduleOnce(function() {
 gData.adData.checkAdMax() || e.videoAdcallBack(!0);
 e.initLastTimeStamp();
+gData.gameData.uploadAverageEcpm();
 }, 0);
 };
 t.prototype.showNative = function(t) {
@@ -5073,7 +5074,6 @@ mk.data.sendDataEvent(c.DataEventId.Sundry, "福利提现成功");
 gData.gameData.doPointToXYLogic();
 gData.receiptNotice.receip_rmb = gData.blessingBag.rbNum;
 mk.ui.openPanel("module/newNotice/newNotice");
-gData.safeDepositBoxData.updateQipao();
 gData.cashNormal.getRecord();
 return [ 2, e ];
 }
@@ -7299,6 +7299,7 @@ this.cashPro_money = 0;
 this.init_success = !1;
 this.init_fail = !1;
 this.callBack = null;
+this.isOrderCashOut = !1;
 }
 t.prototype.openCashPro = function(t) {
 this.cashPro_money = t;
@@ -7510,6 +7511,12 @@ gData.cashPro.callBack();
 gData.cashPro.callBack = null;
 }
 };
+e.prototype.onDestroy = function() {
+if (gData.cashPro.isOrderCashOut) gData.cashPro.isOrderCashOut = !1; else {
+gData.gameData.richBankTeachTag = !0;
+gData.safeDepositBoxData.updateQipao();
+}
+};
 i([ p(cc.Node) ], e.prototype, "loadPart", void 0);
 i([ p(cc.Animation) ], e.prototype, "loadAni", void 0);
 i([ p(cc.Node) ], e.prototype, "cashPro", void 0);
@@ -8910,6 +8917,7 @@ e.sortID = 0;
 e.tab = c.ProductType.bmhc;
 e._state = -1;
 e.data = null;
+e.isCanTouch = !0;
 return e;
 }
 Object.defineProperty(e.prototype, "state", {
@@ -8996,8 +9004,9 @@ this.showGroup.removeAllChildren();
 };
 e.prototype.onTouch = function() {
 return r(this, void 0, void 0, function() {
-var t, e;
+var t, e, a = this;
 return s(this, function() {
+if (!this.isCanTouch) return [ 2 ];
 switch (this.data.state) {
 case c.FactroyState.Lock:
 t = gData.gameData.getProductArrByType(this.tab);
@@ -9018,7 +9027,11 @@ break;
 
 case c.FactroyState.Ripe:
 gData.factorySystem.currSelectFactory = this;
-gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 2);
+this.isCanTouch = !1;
+setTimeout(function() {
+a.isCanTouch = !0;
+}, 1e3);
 break;
 
 case c.FactroyState.Sick:
@@ -9111,7 +9124,7 @@ return [ 2 ];
 e.prototype.canHarvest = function() {
 this.getComponent(l.MoveToCenter).move();
 gData.factorySystem.currSelectFactory = this;
-gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 2);
 };
 e.prototype.canClearSick = function() {
 this.getComponent(l.MoveToCenter).move();
@@ -10145,6 +10158,7 @@ e.sortID = 0;
 e.plantID = 0;
 e._state = -1;
 e.data = null;
+e.isCanTouch = !0;
 return e;
 }
 Object.defineProperty(e.prototype, "state", {
@@ -10268,7 +10282,9 @@ t && this.getComponent(l.MoveToCenter).move();
 };
 e.prototype.onTouch = function() {
 return r(this, void 0, void 0, function() {
+var t = this;
 return s(this, function() {
+if (!this.isCanTouch) return [ 2 ];
 switch (this.data.state) {
 case c.FarmState.Lock:
 mk.tip.pop("点击拓建即可解锁农田");
@@ -10290,7 +10306,11 @@ break;
 
 case c.FarmState.Ripe:
 gData.farmSystem.currSelectFarm = this;
-gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, !0);
+gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node);
+this.isCanTouch = !1;
+setTimeout(function() {
+t.isCanTouch = !0;
+}, 1e3);
 break;
 
 case c.FarmState.Sick:
@@ -10367,8 +10387,20 @@ case 6:
 return [ 2, o.sent() ];
 
 case 7:
+gData.gameData.nextMake = null;
+gData.gameData.setNextProduct(!1);
+if (0 != gData.gameData.nextType) return [ 3, 8 ];
 mk.tip.pop("农田已满,无法继续生产");
 return [ 2, !1 ];
+
+case 8:
+return [ 4, gData.gameData.makeProduct() ];
+
+case 9:
+return [ 2, o.sent() ];
+
+case 10:
+return [ 2, !1 ];
 }
 });
 });
@@ -10417,8 +10449,15 @@ e.prototype.novice_clean = function() {
 this.process.cleanProcess();
 };
 e.prototype.canHarvest = function() {
+var t = this;
+if (this.isCanTouch) {
 gData.farmSystem.currSelectFarm = this;
-gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, !0);
+gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node);
+this.isCanTouch = !1;
+setTimeout(function() {
+t.isCanTouch = !0;
+}, 1e3);
+}
 };
 e.prototype.canClearSick = function() {
 gData.farmSystem.currSelectFarm = this;
@@ -10426,7 +10465,7 @@ mk.data.sendDataEvent(c.DataEventId.button_click, "生虫icon");
 gData.adClearSickData.openPanel(c.ProductType.nzw, this.configID);
 };
 e.prototype.clickGuideBtn = function() {
-mk.guide.isGuiding() && gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, !0, !1, !0);
+mk.guide.isGuiding() && gData.harvestData.openPanel(this.configID, this.plantID, this.onHarvest.bind(this), this.node, 0, !1, !0);
 };
 i([ y({
 type: cc.Node,
@@ -13805,13 +13844,10 @@ mk.console.logSingle("getInfoCrypt", e.data);
 this.initPlayerProp(e.data);
 this.initProps(e.data.gameUserData);
 4 == gData.warnTipData.curSolution && 0 == e.data.isSystemRisk && gData.warnTipData.setSolution(0);
-t = {};
-return [ 4, mk.http.sendData("user/adShowConfig", t) ];
+return [ 4, this.uploadAverageEcpm() ];
 
 case 3:
-if (0 != (e = a.sent()).errcode) return [ 2 ];
-this.adShowConfig = e.data;
-mk.console.logSingle("user/adShowConfig", e.data);
+a.sent();
 gData.adData.initEcpmData();
 gData.guideData.init();
 gData.guideWeakData.init();
@@ -13824,6 +13860,24 @@ return [ 2 ];
 });
 });
 };
+t.prototype.uploadAverageEcpm = function() {
+return o(this, void 0, void 0, function() {
+var t;
+return n(this, function(e) {
+switch (e.label) {
+case 0:
+return [ 4, mk.http.sendData("user/adShowConfig", {}) ];
+
+case 1:
+if (0 != (t = e.sent()).errcode) return [ 2 ];
+this.adShowConfig = t.data;
+mk.data.setTAEventUser(0, "average_ecpm", this.adShowConfig.average_ecpm);
+mk.console.logSingle("user/adShowConfig", t.data);
+return [ 2 ];
+}
+});
+});
+};
 t.prototype.initConfigs = function(t) {
 this.configs = t;
 this.funOpenData = this.configs.ServerConfig.Functionswitch.split(",");
@@ -15801,6 +15855,10 @@ this.registerCallBack();
 console.log("===[Jsbsystem 显示开屏广告================================");
 mk.ad.ifShowAd && Math.random() <= gData.adData.getPerByEcpm(u.RateConfig.RC_splash) && l.default.showSplash();
 this.initRefreshEvent();
+if (1 == gData.gameData.orderRewardType) {
+this.node_showCash.active = !1;
+this.node_showRedMoney.active = !0;
+}
 gData.gameData.playerProp.orderData ? this.initOrderUI() : mk.event.register("initOrderUi", this.initOrderUI.bind(this), this);
 };
 e.prototype.start = function() {
@@ -15810,7 +15868,7 @@ this.initInfo();
 this.runGuideWeak();
 this.initLeftTimes();
 this.initFarmExpUI();
-"1" == gData.gameData.funOpenData[11] && mk.guide.open(10) && mk.event.register("event_guide", this.initGuideEvent.bind(this), this);
+"1" == gData.gameData.funOpenData[11] && (mk.ui.isPopPanel() || mk.guide.open(10) && mk.event.register("event_guide", this.initGuideEvent.bind(this), this));
 if (!mk.storage.getStorage("loadingFinish")) {
 mk.storage.setStorage("loadingFinish", 1);
 mk.data.sendDataEvent(d.DataEventId.loading, "loading结束");
@@ -16112,6 +16170,7 @@ a.destroy();
 }
 this.dpFlyRedAni();
 }
+mk.data.sendDataEvent(d.DataEventId.button_click, "一键生产按钮");
 return [ 2 ];
 }
 });
@@ -16445,11 +16504,7 @@ this.orderPicIdArray = [];
 this.isGray = !0;
 t = gData.gameData.configs.Product;
 if (!(e = gData.gameData.playerProp.orderData)) return [ 3, 6 ];
-if (1 == gData.gameData.orderRewardType) {
-this.node_showCash.active = !1;
-this.node_showRedMoney.active = !0;
-this.lbl_orderRedMoney.string = e.redMoneyAddition / 100 + "";
-} else this.lbl_addCash.string = (e.cashMoney / 100).toFixed(2);
+1 == gData.gameData.orderRewardType ? this.lbl_orderRedMoney.string = e.redMoneyAddition / 100 + "" : this.lbl_addCash.string = (e.cashMoney / 100).toFixed(2);
 if (3 != (a = e.orderTaskList.length)) return [ 3, 6 ];
 o = 0;
 n = 0;
@@ -16545,6 +16600,7 @@ return [ 2, null ];
 a = gData.gameData.playerProp.orderData.cashMoney;
 gData.gameData.playerProp.orderData = e.data.userOrderTaskInfo;
 gData.safeDepositBoxData.setCashRecordDataLength();
+gData.cashPro.isOrderCashOut = !0;
 gData.cashPro.callBack = this.getRewardCallBack.bind(this);
 gData.receiptNotice.receip_rmb = a;
 mk.ui.openPanel("module/newNotice/newNotice");
@@ -16608,8 +16664,10 @@ this.initOrderUI(!1);
 this.showTips();
 gData.gameData.init_order = !0;
 gData.gameData.checkTaskFinishUnLock();
+if (2 == gData.gameData.orderRewardType) {
 gData.gameData.richBankTeachTag = !0;
 gData.safeDepositBoxData.updateQipao();
+}
 gData.cashNormal.getRecord();
 if (this.isStopFarm) {
 this.isStopFarm = !1;
@@ -17271,7 +17329,6 @@ gData.gameData.playerProp.farmGradeData = a.data.userFarmGrageRewardInfo;
 gData.receiptNotice.receip_rmb = a.data.userFarmGrageRewardInfo.farmGradeRewardList[this.cashId - 1].money;
 mk.ui.openPanel("module/newNotice/newNotice");
 gData.gameData.init_red_point = !0;
-gData.safeDepositBoxData.updateQipao();
 gData.cashNormal.getRecord();
 return [ 2, a ];
 }
@@ -17996,7 +18053,8 @@ t.prototype.close = function() {
 this.crtGuideID++;
 };
 t.prototype.isGuideComplete = function() {
-return !this.crtGuideID || 9999 === this.crtGuideID;
+var t = gData.gameData.getProp(o.GameProp.guideID);
+return !this.crtGuideID || 9999 === t;
 };
 t.prototype.isGuiding = function() {
 return null != mk.ui.getCurOnPanel("guide");
@@ -18732,10 +18790,11 @@ e.init_reward = !1;
 e.node_fly = null;
 e.isMatchOrder = !1;
 e.isTouchBtn = !1;
+e.isCrops_ = 0;
 return e;
 }
 e.prototype.openPanel = function(t, e, a, o, n, i, r) {
-void 0 === n && (n = !1);
+void 0 === n && (n = 0);
 void 0 === i && (i = !1);
 void 0 === r && (r = !1);
 this.configID = t;
@@ -18743,8 +18802,9 @@ this.plantID = e;
 this.call = a;
 this.node_fly = o;
 this.isTouchBtn = i;
+this.isCrops_ = n;
 this.config = gData.gameData.getProductMap(this.plantID);
-if (r || n) this.getNormalReward(); else {
+if (r || 0 == n) this.getNormalReward(); else {
 var s = mk.guide.isGuiding(), l = Math.random(), p = gData.adData.getPerByEcpm(c.RateConfig.RC_superDouble);
 !s && l <= p && gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes > 0 && "1" == gData.gameData.prohibiJBAd[gData.loginData.userChannel].split(",")[1 - gData.loginData.isMatched] ? mk.ui.openPanel("game/prefab/uiPanel/HarvestPanel") : this.getNormalReward();
 }
@@ -18757,6 +18817,7 @@ gData.reward.callback = gData.harvestData.call;
 var a = this.node_fly.parent.convertToWorldSpaceAR(this.node_fly.getPosition());
 gData.reward.getReward(a);
 gData.harvestData.call = null;
+1 == this.isCrops_ ? mk.data.sendDataEvent(l.DataEventId.button_click, "动物超级加倍收获") : 2 == this.isCrops_ && mk.data.sendDataEvent(l.DataEventId.button_click, "商品超级加倍收获");
 };
 e.prototype.getNormalReward = function() {
 return r(this, void 0, void 0, function() {
@@ -18835,6 +18896,7 @@ if (!mk.guide.isGuiding() && gData.adData.checkShowFullInter(4)) {
 gData.moreGame.openType = 0;
 mk.data.sendDataEvent(l.DataEventId.htRedBag_scene, "点击可收获");
 }
+0 == this.isCrops_ ? mk.data.sendDataEvent(l.DataEventId.button_click, "农作物普通收获") : 1 == this.isCrops_ ? mk.data.sendDataEvent(l.DataEventId.button_click, "动物普通收获") : 2 == this.isCrops_ && mk.data.sendDataEvent(l.DataEventId.button_click, "商品普通收获");
 return [ 2 ];
 }
 });
@@ -19013,9 +19075,9 @@ this.lbl_max.string = "最高获得</c><color=#ff0000>" + gData.harvestData.conf
 };
 e.prototype.clickNormalBtn = function() {
 return r(this, void 0, void 0, function() {
-var t, e, a, o;
-return s(this, function(n) {
-switch (n.label) {
+var t, e, a, o, n, i, r, c;
+return s(this, function(s) {
+switch (s.label) {
 case 0:
 mk.audio.playEffect("button");
 gData.adData.checkShowFullInter(1, l.InterFullAdType.interstitial2_init_2);
@@ -19025,8 +19087,12 @@ id: gData.harvestData.config.id
 return [ 4, mk.http.sendData("redMoney/addRedMoneyByFarm", t) ];
 
 case 1:
-if ((e = n.sent()) && 0 != e.errcode) return [ 2 ];
-if (e.data.redMoneyAddition <= 0) console.log("返回奖励为0"); else {
+if ((e = s.sent()) && 0 != e.errcode) return [ 2 ];
+if (!(e.data.redMoneyAddition <= 0)) return [ 3, 2 ];
+console.log("返回奖励为0");
+return [ 3, 4 ];
+
+case 2:
 gData.harvestData.getType = 0;
 a = [ {
 rewardType: 1,
@@ -19036,7 +19102,24 @@ gData.reward.data = a;
 gData.reward.callback = gData.harvestData.call;
 o = gData.harvestData.node_fly.parent.convertToWorldSpaceAR(gData.harvestData.node_fly.getPosition());
 gData.reward.getReward(o);
-}
+n = "+" + e.data.redMoneyAddition / 100;
+i = mk.fly.node.convertToNodeSpaceAR(o);
+return [ 4, mk.loader.load("game/prefab/flyHb", cc.Prefab) ];
+
+case 3:
+r = s.sent();
+(c = cc.instantiate(r)).zIndex = 1e3;
+c.parent = mk.fly.node;
+c.setPosition(i);
+c.getComponentInChildren(cc.Label).string = n;
+cc.tween(c).by(.8, {
+y: 100
+}).to(.4, {
+opacity: 0
+}).removeSelf().start();
+s.label = 4;
+
+case 4:
 mk.ui.closePanel("HarvestPanel");
 return [ 2 ];
 }
@@ -25047,6 +25130,7 @@ e._state = -1;
 e.data = null;
 e.emptyClick = !1;
 e.pastureData = null;
+e.isCanTouch = !0;
 return e;
 }
 Object.defineProperty(e.prototype, "state", {
@@ -25181,8 +25265,9 @@ this.showGroup.removeAllChildren();
 };
 e.prototype.onTouch = function() {
 return r(this, void 0, void 0, function() {
-var t, e;
+var t, e, a = this;
 return s(this, function() {
+if (!this.isCanTouch) return [ 2 ];
 switch (this.data.state) {
 case c.PastureState.Lock:
 if (2 == (t = gData.gameData.getProductMap(this.data.productID)).unlock) if (gData.gameData.playerProp.orderData) {
@@ -25206,7 +25291,11 @@ mk.ui.openPanel("module/speedUpUI/speedUp");
 break;
 
 case c.PastureState.Ripe:
-gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 1);
+this.isCanTouch = !1;
+setTimeout(function() {
+a.isCanTouch = !0;
+}, 1e3);
 break;
 
 case c.PastureState.Sick:
@@ -25329,7 +25418,7 @@ return [ 2 ];
 };
 e.prototype.canHarvest = function() {
 this.getComponent(l.MoveToCenter).move();
-gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node);
+gData.harvestData.openPanel(this.configID, this.data.productID, this.onHarvest.bind(this), this.node, 1);
 };
 e.prototype.canClearSick = function() {
 this.getComponent(l.MoveToCenter).move();
@@ -26730,6 +26819,7 @@ e.node_Uncomplete = null;
 e.node_1 = null;
 e.node_2 = null;
 e.lbl_orderValue = null;
+e.lbl_rewardDes = null;
 e.btnCanClick = !0;
 return e;
 }
@@ -26826,9 +26916,8 @@ var t = "<color=8A4312>再生产<color=ff0000>" + o + "</color>次,就可以
 mk.guide.open(11, t);
 }, .2);
 }
+1 == gData.gameData.orderRewardType && (this.lbl_rewardDes.string = "领取" + a.redMoneyAddition / 100 + "红包币");
 } else {
-var p = gData.gameData.playerProp.orderData.cashMoney;
-this.lbl_orderValue.string = "订单已完成,可提现" + (p / 100).toFixed(2) + "元";
 this.sp_taskProgress.fillRange = 1;
 this.lbl_progress.string = n + "/" + n;
 this.node_Uncomplete.active = !1;
@@ -26930,6 +27019,10 @@ i([ p({
 type: cc.Label,
 displayName: "订单提现金额"
 }) ], e.prototype, "lbl_orderValue", void 0);
+i([ p({
+type: cc.Label,
+displayName: "奖励类型描述"
+}) ], e.prototype, "lbl_rewardDes", void 0);
 return i([ l ], e);
 }(cc.Component);
 a.default = u;
@@ -28049,7 +28142,6 @@ mk.data.sendXYEvent("guide_harvest", "首次领取任务红包");
 }
 gData.gameData.doPointToXYLogic();
 gData.adData.checkPopCashFull();
-gData.safeDepositBoxData.updateQipao();
 gData.cashNormal.getRecord();
 return [ 2 ];
 }
@@ -29295,31 +29387,29 @@ if (i.index == a) return i;
 };
 t.prototype.updateQipao = function() {
 return n(this, void 0, void 0, function() {
-var t, e, a;
-return i(this, function(o) {
-switch (o.label) {
+var t, e;
+return i(this, function(a) {
+switch (a.label) {
 case 0:
 return [ 4, mk.time.WaitForSeconds(1) ];
 
 case 1:
-o.sent();
+a.sent();
 return [ 4, mk.http.sendData("newrichbank/getCashRecord", {}) ];
 
 case 2:
-if ((t = o.sent()) && 0 == t.errcode) {
+if ((t = a.sent()) && 0 == t.errcode) {
 this.cashRecordData = t.data;
 console.log("--------------");
 this.freshQipao = !0;
 }
 if (gData.gameData.richBankTeachTag) {
 gData.gameData.richBankTeachTag = !1;
-e = mk.ui.isPopPanel();
-a = gData.gameData.getProp(s.GameProp.cashTimes);
-console.log("=========" + e + "===" + a + "=====" + this.cashRecordData.length + "====" + this.cashRecordDataLength);
-if ("1" == gData.gameData.funOpenData[13] && !e && a >= gData.gameData.showRichBankIconLimit && this.cashRecordData.length >= this.cashRecordDataLength) {
-this.cashRecordDataLength = this.cashRecordData.length;
-this.isTeach = mk.guide.open(13);
-}
+if (mk.guide.isGuideComplete()) return [ 2 ];
+mk.ui.closeAllUI();
+e = gData.gameData.getProp(s.GameProp.cashTimes);
+console.log("=========" + e + "=====" + this.cashRecordData.length + "====" + this.cashRecordDataLength);
+"1" == gData.gameData.funOpenData[13] && e >= gData.gameData.showRichBankIconLimit && (this.isTeach = mk.guide.open(13));
 }
 return [ 2 ];
 }
@@ -30832,7 +30922,6 @@ return [ 2 ];
 o = Math.round(100 * e.videoRedMoney.videoRewardList[0].rewardNum);
 gData.receiptNotice.receip_rmb = o;
 mk.ui.openPanel("module/newNotice/newNotice", c.OpenActionType.closeLast);
-gData.safeDepositBoxData.updateQipao();
 gData.cashNormal.getRecord();
 return [ 3, 4 ];
 
@@ -35398,7 +35487,6 @@ this.init_novice = !0;
 gData.gameData.playerProp.userNoviceWeFareInfo = a.data.userNoviceWeFareInfo;
 gData.receiptNotice.receip_rmb = t;
 mk.ui.openPanel("module/newNotice/newNotice");
-gData.safeDepositBoxData.updateQipao();
 gData.cashNormal.getRecord();
 gData.gameData.doPointToXYLogic();
 return [ 2 ];
@@ -35464,7 +35552,6 @@ gData.gameData.playerProp.redMoney -= o[t - 1].redMoney;
 gData.receiptNotice.receip_rmb = o[t - 1].money;
 mk.ui.openPanel("module/newNotice/newNotice");
 }
-gData.safeDepositBoxData.updateQipao();
 gData.cashNormal.getRecord();
 mk.data.sendDataEvent(c.DataEventId.Sundry, "红包币提现成功");
 gData.gameData.doPointToXYLogic();

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

@@ -12,7 +12,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/"
     ],
-    "buildTime": 1639365917793,
-    "genTime": 1639365917793,
+    "buildTime": 1639395909295,
+    "genTime": 1639395909295,
     "genVersion": null
 }

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
packages-hot-update/manifest/project.manifest


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


Неке датотеке нису приказане због велике количине промена