wuwangdong 4 vuotta sitten
vanhempi
commit
ea429f4305
35 muutettua tiedostoa jossa 393 lisäystä ja 249 poistoa
  1. 20 20
      assets/resources/game/prefab/game.prefab
  2. 0 0
      assets/resources/module/login/hot/project.manifest
  3. 1 1
      assets/resources/module/login/hot/version.manifest
  4. 7 2
      assets/script/before/main/FactoryIcon.ts
  5. 2 2
      assets/script/before/main/FactorySystem.ts
  6. 1 1
      assets/script/before/main/FarmCountDown.ts
  7. 6 2
      assets/script/before/main/PastureIcon.ts
  8. 2 2
      assets/script/before/main/PastureSystem.ts
  9. 1 1
      assets/script/before/view/uiItem/PlantItem.ts
  10. 37 4
      assets/script/game/data/AdData.ts
  11. 62 53
      assets/script/game/data/GameData.ts
  12. 1 1
      assets/script/game/data/HttpData.ts
  13. 2 1
      assets/script/game/data/LoginData.ts
  14. 4 4
      assets/script/game/game/FunBtns.ts
  15. 11 4
      assets/script/game/game/Game.ts
  16. 6 2
      assets/script/game/module/farmMap/ItemName.ts
  17. 13 5
      assets/script/game/module/login/Login.ts
  18. 2 2
      assets/script/game/module/speedUpUI/ProductReward.ts
  19. 8 1
      assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATRewardVideo.ts
  20. 1 1
      assets/script/mk/utils/LogUtil.ts
  21. BIN
      build/jsb-link/assets/main/index.jsc
  22. 0 0
      build/jsb-link/assets/resources/config.json
  23. 0 0
      build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json
  24. 1 1
      build/jsb-link/assets/resources/native/9e/9ed98385-f23f-41b7-a2bc-27a1d4ad9fd6.manifest
  25. 0 0
      build/jsb-link/assets/resources/native/a8/a81eb395-718d-4f3b-958c-cb871f7dd5fa.manifest
  26. BIN
      build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser
  27. 1 1
      build/jsb-link/frameworks/runtime-src/proj.android-studio/app/gradle.properties
  28. 69 69
      build/jsb-link/js backups (useful for debugging)/cocos2d-jsb.js
  29. 131 65
      build/jsb-link/js backups (useful for debugging)/main.index.js
  30. BIN
      build/jsb-link/src/cocos2d-jsb.jsc
  31. 3 3
      packages-hot-update/cfg.json
  32. 0 0
      packages-hot-update/manifest/project.manifest
  33. 1 1
      packages-hot-update/manifest/version.manifest
  34. BIN
      packages-hot-update/versions/ver_1_0.7.zip
  35. BIN
      packages-hot-update/versions/ver_1_0.8.zip

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

@@ -5557,7 +5557,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "aahpcGZONDnbujXl74XiE+",
+    "fileId": "65eH4gGSJHy578wYkWERd9",
     "sync": false
   },
   {
@@ -5769,7 +5769,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "f5IayjVf9PUrPlLVoHtfBW",
+    "fileId": "887hIbbklECJxJL8ElzcbZ",
     "sync": false
   },
   {
@@ -5878,7 +5878,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "49dTH5igZBLbvuOBX3deMx",
+    "fileId": "f4RT2mov1JRpGyccSnWdmD",
     "sync": false
   },
   {
@@ -7467,8 +7467,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 175,
-      "height": 173
+      "width": 164,
+      "height": 175
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -7520,7 +7520,7 @@
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
     "_spriteFrame": {
-      "__uuid__": "d28bad6d-ac92-49a6-a9a6-ad6a05f2101c@6c48a"
+      "__uuid__": "26efc5b1-5b54-4d3a-b0bb-2e810c0c3fe6@6c48a"
     },
     "_type": 0,
     "_sizeMode": 1,
@@ -8226,8 +8226,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 175,
-      "height": 173
+      "width": 231,
+      "height": 159
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -8279,7 +8279,7 @@
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
     "_spriteFrame": {
-      "__uuid__": "d28bad6d-ac92-49a6-a9a6-ad6a05f2101c@6c48a"
+      "__uuid__": "4b485d67-1c02-4e45-a98e-bfe0afa069c1@6c48a"
     },
     "_type": 0,
     "_sizeMode": 1,
@@ -9822,7 +9822,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 123,
+      "width": 133,
       "height": 45
     },
     "_anchorPoint": {
@@ -9834,15 +9834,15 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        178.123,
+        176.123,
         -32.948,
         0,
         0,
         0,
         0,
         1,
-        0.9,
-        0.9,
+        1,
+        1,
         1
       ]
     },
@@ -9889,7 +9889,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 64,
+      "width": 108,
       "height": 54.4
     },
     "_anchorPoint": {
@@ -9901,7 +9901,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        4,
+        0,
         2,
         0,
         0,
@@ -9941,9 +9941,9 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "提现",
-    "_N$string": "提现",
-    "_fontSize": 30,
+    "_string": "订单提现",
+    "_N$string": "订单提现",
+    "_fontSize": 26,
     "_lineHeight": 40,
     "_enableWrapText": true,
     "_N$file": {
@@ -10055,7 +10055,7 @@
       "__uuid__": "010c7f93-d02f-4812-a23d-331822ac6426"
     },
     "_type": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillType": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
@@ -13596,7 +13596,7 @@
     "asset": {
       "__uuid__": "b4dea4a9-29c8-46bc-a50d-5754afa7a2bd"
     },
-    "fileId": "89eSfUrlxJDIPyOkkTBK6/",
+    "fileId": "16VSkTNpBHg5GDF4WA43k2",
     "sync": false
   },
   {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
assets/resources/module/login/hot/project.manifest


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

@@ -1 +1 @@
-{"version":"1.0.7","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/version.manifest"}
+{"version":"1.0.7","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/version.manifest"}

+ 7 - 2
assets/script/before/main/FactoryIcon.ts

@@ -100,8 +100,13 @@ export class FactoryIcon extends cc.Component {
         switch (this.data.state) {
             case FactroyState.Lock:
                 let arr = gData.gameData.getProductArrByType(this.tab);
-                let lv = arr[0].value - gData.gameData.playerProp.orderData.overTimes;
-                mk.tip.pop(`订单提现${lv}次后解锁`);
+                if(gData.gameData.playerProp.orderData)
+                {
+                    let lv = arr[0].value - gData.gameData.playerProp.orderData.overTimes;
+                    mk.tip.pop(`订单提现${lv}次后解锁`);
+                }else{
+                    mk.tip.pop(`提现订单后解锁`);
+                }        
                 break;
             case FactroyState.Empty:
                 gData.factorySystem.currSelectFactory = this;

+ 2 - 2
assets/script/before/main/FactorySystem.ts

@@ -85,8 +85,8 @@ export default class FactorySystem {
     nextFactoryExtra() {
         let factoryArray = [];
         let data = gData.gameData.playerProp.orderData;
-        let orderData = data.orderTaskList;
-        if (data && orderData) {
+        if (data) {
+            let orderData = data.orderTaskList;
             let productJson = gData.gameData.configs.Product;
             for (let i = 0; i != orderData.length; ++i) {
                 let dataE = orderData[i];

+ 1 - 1
assets/script/before/main/FarmCountDown.ts

@@ -104,7 +104,7 @@ export class FarmCountDown extends cc.Component {
         this.counting = false;
         this.normalGroup.active = false;
         let sick = false;
-        if (gData.gameData.playerProp.orderData.overTimes >= 1 && Math.random() < parseFloat(gData.gameData.configs.ServerConfig.StopProduction)) {
+        if (gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes >= 1 && Math.random() < parseFloat(gData.gameData.configs.ServerConfig.StopProduction)) {
             if (this.productConfig.tab == ProductType.nzw) {
                 if (gData.gameData.RawInsectCurArr[0] < parseInt(gData.gameData.RawInsectArr[0])) {
                     sick = true;

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

@@ -151,8 +151,12 @@ export default class PastureIcon extends cc.Component {
             case PastureState.Lock:
                 let config = gData.gameData.getProductMap(this.data.productID);
                 if (config.unlock == 2) {
-                    let times =config.value - gData.gameData.playerProp.orderData.overTimes;
-                    mk.tip.pop(`订单提现${times}次后解锁`);
+                    if(gData.gameData.playerProp.orderData){
+                        let times =config.value - gData.gameData.playerProp.orderData.overTimes;
+                        mk.tip.pop(`订单提现${times}次后解锁`);
+                    }else{
+                        mk.tip.pop(`提现订单后解锁`);
+                    }              
                 }
                 else if (config.unlock == 1) {
                     mk.tip.pop(`喂食${config.name}${config.value}次解锁`)

+ 2 - 2
assets/script/before/main/PastureSystem.ts

@@ -70,8 +70,8 @@ export default class PastureSystem {
         let factoryArray = [];
         let animalArray = [];
         let data = gData.gameData.playerProp.orderData;
-        let orderData = data.orderTaskList;
-        if (data && orderData) {
+        if (data) {
+            let orderData = data.orderTaskList;
             let productJson = gData.gameData.configs.Product;
             for (let i = 0; i != orderData.length; ++i) {
                 let dataE = orderData[i];

+ 1 - 1
assets/script/before/view/uiItem/PlantItem.ts

@@ -79,7 +79,7 @@ export default class PlantItem extends cc.Component {
         }
         //根据农场等级
         else if (list_data.unlock == 2) {
-            if (gData.gameData.playerProp.orderData.overTimes >= list_data.value) {
+            if (gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes >= list_data.value) {
                 unlock = true;
             }
         }

+ 37 - 4
assets/script/game/data/AdData.ts

@@ -20,6 +20,7 @@ export class AdData {
     public publisher_revenue = '';
     public precision = '';
     public ecpm_level = '';
+    public request_id = '';
 
     /** 视频类型 */
     public ad_subType: AdFun;
@@ -102,6 +103,10 @@ export class AdData {
         this.publisher_revenue = data.publisher_revenue;
         this.precision = data.precision;
         this.ecpm_level = data.ecpm_level;
+        this.request_id = '';
+        if(data.ext_info && data.ext_info.request_id){
+            this.request_id = data.ext_info.request_id;
+        }
     }
 
 
@@ -130,6 +135,7 @@ export class AdData {
             "cfg_version": gData.appData.version,
             "adsource_ecpm": gData.gameData.adShowConfig.average_ecpm,
             "ad_sbuType": this.ad_subType,
+            "request_id": this.request_id,
         }
         mk.console.logSingle("updateVideoData:", data);
 
@@ -195,7 +201,8 @@ export class AdData {
                 "publisher_revenue": '',
                 "precision": '',
                 "ecpm_level": '',
-                "platformRisk": 1
+                "platformRisk": 1,
+                "request_id": '',
             }
         }
         else {
@@ -219,7 +226,11 @@ export class AdData {
                 "publisher_revenue": data.publisher_revenue,
                 "precision": data.precision,
                 "ecpm_level": data.ecpm_level,
-                "platformRisk": 1
+                "platformRisk": 1,
+                "request_id": '',
+            }
+            if(data.ext_info && data.ext_info.request_id){
+                sData.request_id = data.ext_info.request_id;
             }
         }
 
@@ -489,12 +500,34 @@ export class AdData {
         return per;
     }
 
-    savePreLoadEcpm(data) {
+    async savePreLoadEcpm(data) {
         let times = gData.gameData.getProp(GameProp.videoTimes);
         console.log('savePreLoadEcpm  times ', times)
         if (!times) {
             console.log('savePreLoadEcpm  data ', data.adsource_price)
-            mk.http.sendData('user/savePreLoadEcpm', data);
+            let response = await mk.http.sendData('user/savePreLoadEcpm', data);
+            if(response.errcode != 0)
+            {
+                return;
+            }
+
+            this.getOrderTaskInfo(0);
+        }
+    }
+
+    async getOrderTaskInfo(isDefault)
+    {
+        if(!gData.gameData.playerProp.orderData)
+        {
+            let data = {};
+            data["isDefault"] = isDefault;
+            let response = await mk.http.sendData('orderTask/getUserOrderTaskInfo', data);
+            if(response.errcode != 0){
+                return;
+            }
+            gData.gameData.playerProp.orderData = response.data.userOrderTaskInfo;  
+
+            mk.event.emit("initOrderUi");
         }
     }
 }

+ 62 - 53
assets/script/game/data/GameData.ts

@@ -234,8 +234,12 @@ export class GameData {
         this.playerProp.userFarmTaskInfo = res_data.userFarmTaskInfo;
         this.playerProp.speedUpLeftTimes = res_data.speedUpLeftTimes;
         this.playerProp.completeFarmTaskTimes = res_data.completeFarmTaskTimes;
-        this.playerProp.orderData = res_data.userOrderTaskInfo;
+        if(res_data.userOrderTaskInfo){
+            this.playerProp.orderData = res_data.userOrderTaskInfo;
+            console.log("============userOrderTaskInfo123");
+        }
         this.playerProp.lineRedMoney = res_data.lineRedMoney;
+        this.playerProp.groupCode = parseInt(res_data.groupCode);
         //this.playerProp.orderData.overTimes = 3;
         //this.cloneOrderData();
         this.playerProp.curProductionAdTimes = res_data.dailyProductionTimes;
@@ -251,6 +255,7 @@ export class GameData {
 
             mk.data.setTAEventRegister();
             mk.data.sendDataEvent('ABTest', `触发${this.playerProp.groupCode}方案`);
+            console.log(`ABTest=====${this.playerProp.groupCode}`);
 
             //注册时版本号
             mk.data.setTAEventUserStr(0, 'regtime_app_id', gData.appData.appVersion);
@@ -552,8 +557,8 @@ export class GameData {
         let productType = [];
         let animalId = [];
         let data = this.playerProp.orderData;
-        let orderData = data.orderTaskList;
-        if (data && orderData) {
+        if (data) {
+            let orderData = data.orderTaskList;
             let productJson = this.configs.Product;
             for (let i = 0; i != orderData.length; ++i) {
                 let dataE = orderData[i];
@@ -663,8 +668,8 @@ export class GameData {
         let factoryArray = [];
         let animalArray = [];
         let data = this.playerProp.orderData;
-        let orderData = data.orderTaskList;
-        if (data && orderData) {
+        if (data) {
+            let orderData = data.orderTaskList;
             let productJson = this.configs.Product;
             for (let i = 0; i != orderData.length; ++i) {
                 let dataE = orderData[i];
@@ -746,8 +751,8 @@ export class GameData {
     
     public doJudgeOrderLogic(out?: any) {
         let data = this.playerProp.orderData;
-        let orderData = data.orderTaskList;
-        if (data && orderData) {
+        if (data) {
+            let orderData = data.orderTaskList;
             let productJson = this.configs.Product;
             for (let i = 0; i != orderData.length; ++i) {
                 let dataE = orderData[i];
@@ -1371,13 +1376,18 @@ export class GameData {
             let id = 30001;
             let data = null;
             for (var i = 0; i < len1; i++) {
-                if (this.playerProp.orderData.overTimes < arr[i].value) {
+                if(this.playerProp.orderData)
+                {
+                    if (this.playerProp.orderData.overTimes < arr[i].value) {
+                        data = { id: id, state: PastureState.Lock, productID: arr[i].picture, growSpan: 0 };
+                    }
+                    else {
+                        data = { id: id, state: PastureState.Empty, productID: arr[i].picture, growSpan: 0 };
+                    }
+                }else{
                     data = { id: id, state: PastureState.Lock, productID: arr[i].picture, growSpan: 0 };
                 }
-                else {
-                    data = { id: id, state: PastureState.Empty, productID: arr[i].picture, growSpan: 0 };
-                }
-
+                
                 this._pastureData.push(data);
                 this._pastureDataMap.set(id, data);
                 id++;
@@ -1443,19 +1453,24 @@ export class GameData {
             for (var i = 0; i < 6; i++) {
                 tab = this.getTabByConfigID(id);
                 let arr = this.getProductArrByType(tab);
-                if (this.playerProp.orderData.overTimes < arr[0].value) {
+                if(this.playerProp.orderData){
+                    if (this.playerProp.orderData.overTimes < arr[0].value) {
+                        data = { id: id, state: FactroyState.Lock, productID: 0, growSpan: 0 };
+                    }
+                    else {
+                        data = { id: id, state: FactroyState.Empty, productID: 0, growSpan: 0 };
+                        //更新最大可购买商品
+                        //this.setMaxProduct(arr[0].picture, true);
+                        // let is = this.addProductUnlockMaxId(tab, arr[0].picture);
+                        // if(!isUpdate)
+                        // {
+                        //     isUpdate = is;
+                        // }
+                    }
+                }else{
                     data = { id: id, state: FactroyState.Lock, productID: 0, growSpan: 0 };
                 }
-                else {
-                    data = { id: id, state: FactroyState.Empty, productID: 0, growSpan: 0 };
-                    //更新最大可购买商品
-                    //this.setMaxProduct(arr[0].picture, true);
-                    // let is = this.addProductUnlockMaxId(tab, arr[0].picture);
-                    // if(!isUpdate)
-                    // {
-                    //     isUpdate = is;
-                    // }
-                }
+                
                 this._factoryData.push(data);
                 this._factoryDataMap.set(id, data);
                 id++;
@@ -1475,16 +1490,6 @@ export class GameData {
                 if (this._factoryData[i].state == FactroyState.Sick) {
                     sickTimes++;
                 }
-
-                if (this.playerProp.orderData.overTimes >= arr[0].value) {
-                    //更新最大可购买商品
-                    //this.setMaxProduct(arr[0].picture, true);;
-                    // let is = this.addProductUnlockMaxId(tab, arr[0].picture);
-                    // if(!isUpdate)
-                    // {
-                    //     isUpdate = is;
-                    // }
-                }
                 id++;
             }
 
@@ -1685,15 +1690,17 @@ export class GameData {
                     let maxId = 0;
                     for (var i = 0; i < len; i++) {
                         data = this.getPastureDataMap(id);
-                        if (this.playerProp.orderData.overTimes >= configArr[i].value) {
-                            if (data.state == PastureState.Lock) {
-                                data = { id: id, state: PastureState.Empty, productID: configArr[i].picture, growSpan: 0 };
-                                this.setPastureDataMap(id, data, false);
-                                needUpdate = true;
+                        if(this.playerProp.orderData){
+                            if (this.playerProp.orderData.overTimes >= configArr[i].value) {
+                                if (data.state == PastureState.Lock) {
+                                    data = { id: id, state: PastureState.Empty, productID: configArr[i].picture, growSpan: 0 };
+                                    this.setPastureDataMap(id, data, false);
+                                    needUpdate = true;
+                                }
+    
+                                maxId = configArr[i].picture;
                             }
-
-                            maxId = configArr[i].picture;
-                        }
+                        }        
                         id++;
                     }
                     console.log(`checkTaskFinishUnLock11=====${maxId}`);
@@ -1717,18 +1724,20 @@ export class GameData {
                     needUpdate = false;
                     let configID = this.getConfigIDByTab(tab);
                     data = this.getFactoryDataMap(configID);
-                    if (this.playerProp.orderData.overTimes >= configArr[0].value) {
-                        if (data.state == FactroyState.Lock) {
-                            data = { id: id, state: FactroyState.Empty, productID: 0, growSpan: 0 };
-                            this.setFactoryDataMap(configID, data, false);
-                            needUpdate = true;
-                        }
-                        //更新最大可购买商品
-                        //this.setMaxProduct(configArr[0].picture, true);
-                        console.log(`checkTaskFinishUnLock222=====${maxId}`);
-                        let is = this.addProductUnlockMaxId(tab, configArr[0].picture);
-                        if (!isUpdateToSever) {
-                            isUpdateToSever = is;
+                    if(this.playerProp.orderData){
+                        if (this.playerProp.orderData.overTimes >= configArr[0].value) {
+                            if (data.state == FactroyState.Lock) {
+                                data = { id: id, state: FactroyState.Empty, productID: 0, growSpan: 0 };
+                                this.setFactoryDataMap(configID, data, false);
+                                needUpdate = true;
+                            }
+                            //更新最大可购买商品
+                            //this.setMaxProduct(configArr[0].picture, true);
+                            console.log(`checkTaskFinishUnLock222=====${maxId}`);
+                            let is = this.addProductUnlockMaxId(tab, configArr[0].picture);
+                            if (!isUpdateToSever) {
+                                isUpdateToSever = is;
+                            }
                         }
                     }
 

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

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

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

@@ -314,7 +314,8 @@ export class LoginData {
             "login_ticket": this.loginTicket,
             "szlm_did": mk.shuzilmM.szlm_did,
             "black_box": mk.tongdunM.tdEquipID,
-            "mac": gData.appData.machineInfo.mac
+            "mac": gData.appData.machineInfo.mac,
+            "appVersion": gData.appData.appVersion
         };
 
         let data = {

+ 4 - 4
assets/script/game/game/FunBtns.ts

@@ -25,6 +25,7 @@ export default class FunBtns extends cc.Component {
     @property({ type: cc.Node, displayName: "富翁银行" })
     btn14: cc.Node = null;
 
+    private addCount = 0;
     onLoad() {
         gData.gameData.funBtns = this;
     }
@@ -34,7 +35,6 @@ export default class FunBtns extends cc.Component {
     }
 
     init() {
-        let add = 0;
         let data = gData.gameData.funOpenData;
         for (let i = 0; i < data.length; i++) {
             let node_btn = this['btn' + (i + 1)];
@@ -44,19 +44,19 @@ export default class FunBtns extends cc.Component {
                 if(i == 11 && data[i] == "0" )
                 {
                     this.btn5.y = this.btn5.y + 170;
-                    add += 1;
+                    this.addCount += 1;
                 }else if(i == 2 && data[i] == "0")
                 {
                     this.btn4.y = this.btn4.y + 170;
                 }
                 else if (i == 4 && data[i] == "0")
                 {
-                    add += 1;
+                    this.addCount += 1;
                 }
             }
         }
 
-        this.btn9.y = this.btn9.y + 130 * add;
+        this.btn9.y = this.btn9.y + 130 * this.addCount;
 
         if(this.btn8.active)
         {

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

@@ -4,6 +4,7 @@ import TimeUtil from "../../mk/utils/TimeUtil";
 import SetGray from "../component/SetGray";
 import { AdFun, RateConfig } from "../data/AdData";
 import { DataEventId, FarmState, GameProp, ProductType, VideoAdType } from "../data/GameData";
+import FunBtns from "./FunBtns";
 
 const { ccclass, property } = cc._decorator;
 
@@ -137,6 +138,7 @@ export default class Game extends cc.Component {
 
     private isShowAddProductTimesUI = false;
 
+    private is
     onLoad() {
         this.posY = this.ani_add2.y;
         this.ani_add.node.active = false;
@@ -158,7 +160,12 @@ export default class Game extends cc.Component {
 
         this.initRefreshEvent();
 
-        this.initOrderUI();
+        if(gData.gameData.playerProp.orderData)
+        {
+            this.initOrderUI();
+        }else{
+            mk.event.register("initOrderUi", this.initOrderUI.bind(this), this);
+        }
     }
 
     start() {
@@ -475,7 +482,7 @@ export default class Game extends cc.Component {
 
     /** 点击福利 */
     public onClickFuli() {
-        if(gData.gameData.playerProp.orderData.overTimes >= gData.gameData.welfareOpenLimit)
+        if(gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes >= gData.gameData.welfareOpenLimit)
         {
             mk.ui.openPanel('module/blessingBag/blessingBag');
             mk.data.sendDataEvent(DataEventId.button_click, "福利icon");
@@ -1120,7 +1127,7 @@ export default class Game extends cc.Component {
         this.node_orderHbIcon.active = true;
         this.node_getOrderReward.node.active = true;
 
-        this.initOrderUI();
+        this.initOrderUI(false);
         this.showTips();
         gData.gameData.init_order = true;
         gData.gameData.checkTaskFinishUnLock();
@@ -1139,7 +1146,7 @@ export default class Game extends cc.Component {
     }
 
     async doCropFlyLogic(plantId: number, farmNode: cc.Node = null, parentNode: cc.Node = null,isNzw = false) {
-        if (gData.gameData.funOpenData[11] == "0") {
+        if (gData.gameData.funOpenData[11] == "0" || !gData.gameData.playerProp.orderData) {
             return;
         }
         for (let i = 0; i != this.orderPicIdArray.length; ++i) {

+ 6 - 2
assets/script/game/module/farmMap/ItemName.ts

@@ -44,8 +44,12 @@ export default class ItemName extends cc.Component{
         let data = gData.gameData.getProductArrByType(this.pt);
         if(data && data.length> 0 && data[0].unlock == 2)
         {
-            let times = data[0].value - gData.gameData.playerProp.orderData.overTimes;
-            mk.tip.pop(`订单提现${times}次后解锁`);
+            if(gData.gameData.playerProp.orderData){
+                let times = data[0].value - gData.gameData.playerProp.orderData.overTimes;
+                mk.tip.pop(`订单提现${times}次后解锁`);
+            }else{
+                mk.tip.pop(`提现订单后解锁`);
+            }
         }
     }
 }

+ 13 - 5
assets/script/game/module/login/Login.ts

@@ -47,6 +47,10 @@ export default class Login extends cc.Component {
 
     private initShuzilm = false;
 
+    //debug使用
+    private initOrderInfo = false;
+
+
     onLoad() {
         this.lbl_progress.node.active = false;
         this.node_load.active = true;
@@ -172,17 +176,21 @@ export default class Login extends cc.Component {
                         if (!gData.loginData.passAnti) {
                             return
                         }
+                    } else {
+                        if (!this.initOrderInfo) {
+                            this.initOrderInfo = true;
+                            gData.adData.getOrderTaskInfo(1);
+                        }
                     }
 
                     if (this.isLoadComplete) {
-                        if(this.addTime >= 120)
-                        {
+                        if (this.addTime >= 120) {
                             this.addToScene();
                             this.isLoadComplete = false;
-                        }else{
+                        } else {
                             return;
-                        }          
-                    }else{
+                        }
+                    } else {
                         return;
                     }
 

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

@@ -110,10 +110,10 @@ export default class ProductReward extends cc.Component {
 
         if (gData.gameData.funOpenData[11] == "1") {
             let data = gData.gameData.playerProp.orderData;
-            let orderData = data.orderTaskList;
-            if (data && orderData) {
+            if (data) {
                 let count = 0;
                 let allCount = 0;
+                let orderData = data.orderTaskList;
                 for (let i = 0; i != orderData.length; ++i) {
                     allCount += orderData[i].taskCount;
                     count += (orderData[i].taskCount - orderData[i].completeCount)

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

@@ -1,4 +1,4 @@
-import { DataEventId, VideoAdType } from "../../../../../game/data/GameData";
+import { DataEventId, GameProp, VideoAdType } from "../../../../../game/data/GameData";
 import { zgSingleton } from "../../zgSingleton";
 import ATSDKMgr, { AdPlayStateType } from "./ATSDKMgr";
 
@@ -110,6 +110,13 @@ export class ATRewardVideo extends zgSingleton {
         // ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdFailed(" + placementId + ", " + errorInfo + ")");
         console.log("ATRewardVideo 失败 ", RewardAdState[this.reawardAdState]);
         this.reawardAdState = RewardAdState.LoadFail;
+
+        //广告加载失败处理订单逻辑
+        let times = gData.gameData.getProp(GameProp.videoTimes);
+        if(!times)
+        {
+            gData.adData.getOrderTaskInfo(1);
+        }
     }
 
     /**

+ 1 - 1
assets/script/mk/utils/LogUtil.ts

@@ -9,7 +9,7 @@ export default class LogUtil {
      * 是否显示Log
      * @description
      */
-    public ifShowLog: boolean = false;
+    public ifShowLog: boolean = true;
 
     /**
      * 标签符号

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


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/jsb-link/assets/resources/config.json


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json


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

@@ -1 +1 @@
-{"version":"1.0.7","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/version.manifest"}
+{"version":"1.0.7","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/version.manifest"}

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
build/jsb-link/assets/resources/native/a8/a81eb395-718d-4f3b-958c-cb871f7dd5fa.manifest


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


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

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

+ 69 - 69
build/jsb-link/js backups (useful for debugging)/cocos2d-jsb.js

@@ -36487,16 +36487,16 @@ return e.join("");
 253: [ (function(t, e, i) {
 "use strict";
 i.__esModule = !0;
-i.default = L;
+i.default = V;
 i.unpackJSONs = function(t, e) {
-if (t[0] < 1) throw new Error(cc.debug.getError(5304, t[0]));
-D(t, !0, e);
-P(t);
-for (var i = new O(t[0]), n = t[1], r = t[2], s = t[3], o = t[4], a = t[v], c = 0; c < a.length; ++c) a[c].unshift(i, n, r, s, o);
+if (t[0] < f) throw new Error(cc.debug.getError(5304, t[0]));
+R(t, !0, e);
+L(t);
+for (var i = new N(t[0]), n = t[1], r = t[2], s = t[3], o = t[4], a = t[b], c = 0; c < a.length; ++c) a[c].unshift(i, n, r, s, o);
 return a;
 };
 i.packCustomObjData = function(t, e, i) {
-return [ 1, f, f, [ t ], f, i ? [ e, -1 ] : [ e ], [ 0 ], f, [], [], [] ];
+return [ f, d, d, [ t ], d, i ? [ e, -1 ] : [ e ], [ 0 ], d, [], [], [] ];
 };
 i.hasNativeDep = function(t) {
 var e = t[5], i = e[e.length - 1];
@@ -36514,21 +36514,21 @@ return t && t.__esModule ? t : {
 default: t
 };
 }
-var f = 0, d = [ r.default, s.default, o.default, u.default, a.default, c.default, l.default, h.default ];
-function p(t, e) {
+var f = 1, d = 0, p = [ r.default, s.default, o.default, u.default, a.default, c.default, l.default, h.default ];
+function m(t, e) {
 t.x = e[1];
 t.y = e[2];
 t.z = e[3];
 t.w = e[4];
 }
-var m = [ function(t, e) {
+var y = [ function(t, e) {
 t.x = e[1];
 t.y = e[2];
 }, function(t, e) {
 t.x = e[1];
 t.y = e[2];
 t.z = e[3];
-}, p, p, function(t, e) {
+}, m, m, function(t, e) {
 t._val = e[1];
 }, function(t, e) {
 t.width = e[1];
@@ -36540,7 +36540,7 @@ t.width = e[3];
 t.height = e[4];
 }, function(t, e) {
 h.default.fromArray(t, e, 1);
-} ], y = 0, v = 5, g = (function() {
+} ], v = 0, g = 0, b = 5, C = (function() {
 function t() {
 this.uuidObjList = null;
 this.uuidPropList = null;
@@ -36564,13 +36564,13 @@ this.uuidList.push(i);
 };
 return t;
 })();
-g.pool = new n.default.Pool(function(t) {
+C.pool = new n.default.Pool(function(t) {
 t.reset();
 }, 5);
-g.pool.get = function() {
-return this._get() || new g();
+C.pool.get = function() {
+return this._get() || new C();
 };
-function b(t, e, i) {
+function x(t, e, i) {
 for (var n = t.length - 1, r = 0, s = 3 * t[n]; r < s; r += 3) {
 var o = t[r], a = e[t[r + 2]], c = t[r + 1];
 c >= 0 ? o[i[c]] = a : o[~c] = a;
@@ -36580,127 +36580,127 @@ var l = e[t[r]], u = e[t[r + 2]], h = t[r + 1];
 h >= 0 ? l[i[h]] = u : l[~h] = u;
 }
 }
-function C(t, e) {
+function A(t, e) {
 for (var i = t[4][e[0]], n = i[0], r = new (0, n[0])(), s = n[1], o = n[2], a = i[i.length - 1], c = 1; c < a; ++c) r[s[i[c]]] = e[c];
 for (;c < e.length; ++c) {
 var l = s[i[c]], u = n[i[c] + o];
-(0, E[u])(t, r, l, e[c]);
+(0, B[u])(t, r, l, e[c]);
 }
 return r;
 }
-function x(t, e, i) {
+function S(t, e, i) {
 var r = new e();
 r._deserialize ? r._deserialize(i, t[0]) : cc.errorID(5303, n.default.getClassName(e));
 return r;
 }
-function A(t, e, i, n) {
+function T(t, e, i, n) {
 n >= 0 ? e[i] = t[5][n] : t[7][3 * ~n] = e;
 }
-function S(t) {
+function w(t) {
 return function(e, i, n, r) {
 i[n] = r;
 for (var s = 0; s < r.length; ++s) t(e, r, s, r[s]);
 };
 }
-function T(t, e, i, n) {
+function E(t, e, i, n) {
 e[i] = null;
 t[8][n] = e;
 }
-function w(t, e, i, n) {
-e[i] = C(t, n);
+function M(t, e, i, n) {
+e[i] = A(t, n);
 }
-var E = new Array(13);
-E[0] = function(t, e, i, n) {
+var B = new Array(13);
+B[0] = function(t, e, i, n) {
 e[i] = n;
 };
-E[1] = A;
-E[2] = S(A);
-E[3] = S(T);
-E[4] = w;
-E[5] = function(t, e, i, n) {
-m[n[0]](e[i], n);
+B[1] = T;
+B[2] = w(T);
+B[3] = w(E);
+B[4] = M;
+B[5] = function(t, e, i, n) {
+y[n[0]](e[i], n);
 };
-E[6] = T;
-E[7] = function(t, e, i, n) {
+B[6] = E;
+B[7] = function(t, e, i, n) {
 e[i].set(n);
 };
-E[8] = function(t, e, i, n) {
-var r = new d[n[0]]();
-m[n[0]](r, n);
+B[8] = function(t, e, i, n) {
+var r = new p[n[0]]();
+y[n[0]](r, n);
 e[i] = r;
 };
-E[9] = S(w);
-E[10] = function(t, e, i, n) {
+B[9] = w(M);
+B[10] = function(t, e, i, n) {
 var r = t[3][n[0]];
-e[i] = x(t, r, n[1]);
+e[i] = S(t, r, n[1]);
 };
-E[11] = function(t, e, i, n) {
+B[11] = function(t, e, i, n) {
 var r = n[0];
 e[i] = r;
 for (var s = 1; s < n.length; s += 3) {
 var o = n[s], a = n[s + 1], c = n[s + 2];
-(0, E[a])(t, r, o, c);
+(0, B[a])(t, r, o, c);
 }
 };
-E[12] = function(t, e, i, n) {
+B[12] = function(t, e, i, n) {
 var r = n[0];
 e[i] = r;
 for (var s = 0; s < r.length; ++s) {
 var o = r[s], a = n[s + 1];
-0 !== a && (0, E[a])(t, r, s, o);
+0 !== a && (0, B[a])(t, r, s, o);
 }
 };
-function M(t) {
-var e = t[5], i = t[6], n = 0 === i ? 0 : i.length, r = e[e.length - 1], s = e.length - n;
+function I(t) {
+var e = t[5], i = t[6], n = i === d ? 0 : i.length, r = e[e.length - 1], s = e.length - n;
 if ("number" != typeof r) r = 0; else {
 r < 0 && (r = ~r);
 --s;
 }
-for (var o = 0; o < s; ++o) e[o] = C(t, e[o]);
+for (var o = 0; o < s; ++o) e[o] = A(t, e[o]);
 for (var a = t[3], c = 0; c < n; ++c, ++o) {
 var l = i[c], u = e[o];
 if (l >= 0) {
 var h = a[l];
-e[o] = x(t, h, u);
-} else (0, E[l = ~l])(t, e, o, u);
+e[o] = S(t, h, u);
+} else (0, B[l = ~l])(t, e, o, u);
 }
 return r;
 }
-function B(t, e) {
-t || L.reportMissingClass(e);
+function D(t, e) {
+t || V.reportMissingClass(e);
 return Object;
 }
-function I(t, e, i, n, r, s) {
+function P(t, e, i, n, r, s) {
 var o = t(e);
 if (!o) {
 if (r) {
 i[n] = (function(e, i, n) {
 return function() {
-var r = t(n) || B(s, n);
+var r = t(n) || D(s, n);
 e[i] = r;
 return new r();
 };
 })(i, n, e);
 return;
 }
-o = B(s, e);
+o = D(s, e);
 }
 i[n] = o;
 }
-function D(t, e, i) {
+function R(t, e, i) {
 for (var r = i || n.default._getClassById, s = t[3], o = 0; o < s.length; ++o) {
 var a = s[o];
-"string" != typeof a ? I(r, a[0], a, y, e, i) : I(r, a, s, o, e, i);
+"string" != typeof a ? P(r, a[v], a, v, e, i) : P(r, a, s, o, e, i);
 }
 }
-function P(t) {
+function L(t) {
 var e = t[4];
 if (e) for (var i = t[3], n = 0; n < e.length; ++n) {
 var r = e[n];
-r[0] = i[r[0]];
+r[g] = i[r[g]];
 }
 }
-function R(t) {
+function O(t) {
 for (var e = t[5], i = t[2], n = t[1], r = t[8], s = t[9], o = t[10], a = 0; a < r.length; ++a) {
 var c = r[a];
 "number" == typeof c && (r[a] = e[c]);
@@ -36713,34 +36713,34 @@ var u = o[a];
 "number" == typeof u && (o[a] = n[u]);
 }
 }
-function L(t, e, i) {
+function V(t, e, i) {
 "string" == typeof t && (t = JSON.parse(t));
 var n = !e;
-(e = e || g.pool.get()).init(t);
+(e = e || C.pool.get()).init(t);
 i = i || {};
 var r = t[0], s = !1;
 if ("object" == typeof r) {
 s = r.preprocessed;
 r = r.version;
 }
-if (r < 1) throw new Error(cc.debug.getError(5304, r));
+if (r < f) throw new Error(cc.debug.getError(5304, r));
 i._version = r;
 i.result = e;
 t[0] = i;
 if (!s) {
-D(t, !1, i.classFinder);
-P(t);
+R(t, !1, i.classFinder);
+L(t);
 }
 cc.game._isCloning = !0;
-var o = t[5], a = M(t);
+var o = t[5], a = I(t);
 cc.game._isCloning = !1;
-t[7] && b(t[7], o, t[2]);
-R(t);
-n && g.pool.put(e);
+t[7] && x(t[7], o, t[2]);
+O(t);
+n && C.pool.put(e);
 return o[a];
 }
-L.Details = g;
-var O = function(t) {
+V.Details = C;
+var N = function(t) {
 this.preprocessed = !0;
 this.version = t;
 };

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

@@ -2009,6 +2009,7 @@ e.prototype.onRewardedVideoAdFailed = function() {
 this.ifLoadShow = !1;
 console.log("ATRewardVideo 失败 ", s[this.reawardAdState]);
 this.reawardAdState = s.LoadFail;
+gData.gameData.getProp(c.GameProp.videoTimes) || gData.adData.getOrderTaskInfo(1);
 };
 e.prototype.onRewardedVideoAdPlayStart = function(t, e) {
 var a = JSON.parse(e);
@@ -2808,6 +2809,7 @@ this.adsource_isheaderbidding = "";
 this.publisher_revenue = "";
 this.precision = "";
 this.ecpm_level = "";
+this.request_id = "";
 this._watchNumToday = 0;
 this.ecpmLevel = 0;
 this.AutoRedMoneyMap = new Map();
@@ -2871,6 +2873,8 @@ this.adsource_isheaderbidding = e.adsource_isheaderbidding;
 this.publisher_revenue = e.publisher_revenue;
 this.precision = e.precision;
 this.ecpm_level = e.ecpm_level;
+this.request_id = "";
+e.ext_info && e.ext_info.request_id && (this.request_id = e.ext_info.request_id);
 };
 t.prototype.watchVideo = function(t, e) {
 void 0 === e && (e = null);
@@ -2902,7 +2906,8 @@ precision_ecpm: this.precision,
 ecpm_level: this.ecpm_level,
 cfg_version: gData.appData.version,
 adsource_ecpm: gData.gameData.adShowConfig.average_ecpm,
-ad_sbuType: this.ad_subType
+ad_sbuType: this.ad_subType,
+request_id: this.request_id
 };
 mk.console.logSingle("updateVideoData:", a);
 return [ 4, mk.http.sendData("updateVideo", a) ];
@@ -2930,8 +2935,9 @@ var o, i;
 return n(this, function(n) {
 switch (n.label) {
 case 0:
-null;
-o = a ? {
+o = null;
+if (a) {
+o = {
 imei: gData.appData.machineInfo.imei,
 idfa: gData.appData.machineInfo.idfa,
 oaid: gData.appData.machineInfo.oaid,
@@ -2951,8 +2957,11 @@ adsource_isheaderbidding: a.adsource_isheaderbidding,
 publisher_revenue: a.publisher_revenue,
 precision: a.precision,
 ecpm_level: a.ecpm_level,
-platformRisk: 1
-} : {
+platformRisk: 1,
+request_id: ""
+};
+a.ext_info && a.ext_info.request_id && (o.request_id = a.ext_info.request_id);
+} else o = {
 imei: gData.appData.machineInfo.imei,
 idfa: gData.appData.machineInfo.idfa,
 oaid: gData.appData.machineInfo.oaid,
@@ -2972,7 +2981,8 @@ adsource_isheaderbidding: "",
 publisher_revenue: "",
 precision: "",
 ecpm_level: "",
-platformRisk: 1
+platformRisk: 1,
+request_id: ""
 };
 return [ 4, mk.http.sendData("updateADLog", o) ];
 
@@ -3123,12 +3133,49 @@ if (gData.gameData.adShowConfig.average_ecpm <= parseInt(e[n].ecpmMax)) return p
 return o;
 };
 t.prototype.savePreLoadEcpm = function(t) {
-var e = gData.gameData.getProp(c.GameProp.videoTimes);
+return o(this, void 0, void 0, function() {
+var e;
+return n(this, function(a) {
+switch (a.label) {
+case 0:
+e = gData.gameData.getProp(c.GameProp.videoTimes);
 console.log("savePreLoadEcpm  times ", e);
-if (!e) {
+if (e) return [ 3, 2 ];
 console.log("savePreLoadEcpm  data ", t.adsource_price);
-mk.http.sendData("user/savePreLoadEcpm", t);
+return [ 4, mk.http.sendData("user/savePreLoadEcpm", t) ];
+
+case 1:
+if (0 != a.sent().errcode) return [ 2 ];
+this.getOrderTaskInfo(0);
+a.label = 2;
+
+case 2:
+return [ 2 ];
 }
+});
+});
+};
+t.prototype.getOrderTaskInfo = function(t) {
+return o(this, void 0, void 0, function() {
+var e, a;
+return n(this, function(o) {
+switch (o.label) {
+case 0:
+if (gData.gameData.playerProp.orderData) return [ 3, 2 ];
+(e = {}).isDefault = t;
+return [ 4, mk.http.sendData("orderTask/getUserOrderTaskInfo", e) ];
+
+case 1:
+if (0 != (a = o.sent()).errcode) return [ 2 ];
+gData.gameData.playerProp.orderData = a.data.userOrderTaskInfo;
+mk.event.emit("initOrderUi");
+o.label = 2;
+
+case 2:
+return [ 2 ];
+}
+});
+});
 };
 return t;
 }();
@@ -8622,8 +8669,10 @@ return s(this, function() {
 switch (this.data.state) {
 case c.FactroyState.Lock:
 t = gData.gameData.getProductArrByType(this.tab);
+if (gData.gameData.playerProp.orderData) {
 e = t[0].value - gData.gameData.playerProp.orderData.overTimes;
 mk.tip.pop("订单提现" + e + "次后解锁");
+} else mk.tip.pop("提现订单后解锁");
 break;
 
 case c.FactroyState.Empty:
@@ -8945,9 +8994,9 @@ return this.factoryIcons[p];
 return null;
 };
 t.prototype.nextFactoryExtra = function() {
-var t = [], e = gData.gameData.playerProp.orderData, a = e.orderTaskList;
-if (e && a) {
-for (var o = gData.gameData.configs.Product, n = 0; n != a.length; ++n) {
+var t = [], e = gData.gameData.playerProp.orderData;
+if (e) {
+for (var a = e.orderTaskList, o = gData.gameData.configs.Product, n = 0; n != a.length; ++n) {
 var i = a[n];
 if (i.completeCount < i.taskCount && i.Id <= o.length) {
 var s = o[i.Id - 1];
@@ -9290,7 +9339,7 @@ void 0 === t && (t = !0);
 this.counting = !1;
 this.normalGroup.active = !1;
 var e = !1;
-if (gData.gameData.playerProp.orderData.overTimes >= 1 && Math.random() < parseFloat(gData.gameData.configs.ServerConfig.StopProduction)) if (this.productConfig.tab == l.ProductType.nzw) {
+if (gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes >= 1 && Math.random() < parseFloat(gData.gameData.configs.ServerConfig.StopProduction)) if (this.productConfig.tab == l.ProductType.nzw) {
 if (gData.gameData.RawInsectCurArr[0] < parseInt(gData.gameData.RawInsectArr[0])) {
 e = !0;
 gData.gameData.RawInsectCurArr[0]++;
@@ -12696,6 +12745,7 @@ e.btn8 = null;
 e.btn9 = null;
 e.btn12 = null;
 e.btn14 = null;
+e.addCount = 0;
 return e;
 }
 e.prototype.onLoad = function() {
@@ -12705,21 +12755,21 @@ e.prototype.start = function() {
 this.init();
 };
 e.prototype.init = function() {
-for (var t = 0, e = gData.gameData.funOpenData, a = 0; a < e.length; a++) {
-var o = this["btn" + (a + 1)];
-if (o) {
-o.active = "1" == e[a];
-if (11 == a && "0" == e[a]) {
+for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
+var a = this["btn" + (e + 1)];
+if (a) {
+a.active = "1" == t[e];
+if (11 == e && "0" == t[e]) {
 this.btn5.y = this.btn5.y + 170;
-t += 1;
-} else 2 == a && "0" == e[a] ? this.btn4.y = this.btn4.y + 170 : 4 == a && "0" == e[a] && (t += 1);
+this.addCount += 1;
+} else 2 == e && "0" == t[e] ? this.btn4.y = this.btn4.y + 170 : 4 == e && "0" == t[e] && (this.addCount += 1);
 }
 }
-this.btn9.y = this.btn9.y + 130 * t;
+this.btn9.y = this.btn9.y + 130 * this.addCount;
 if (this.btn8.active) {
-var n = gData.gameData.playerProp.completeFarmTaskTimes >= parseInt(gData.gameData.configs.ServerConfig.FlyRedMoney);
-this.btn8.active = n;
-n || mk.event.register("refreshBubble", this.refreshStatus.bind(this), this);
+var o = gData.gameData.playerProp.completeFarmTaskTimes >= parseInt(gData.gameData.configs.ServerConfig.FlyRedMoney);
+this.btn8.active = o;
+o || mk.event.register("refreshBubble", this.refreshStatus.bind(this), this);
 }
 };
 e.prototype.refreshStatus = function() {
@@ -13289,8 +13339,12 @@ this.playerProp.redMoneyCashPayRecordList = t.redMoneyCashPayRecordList;
 this.playerProp.userFarmTaskInfo = t.userFarmTaskInfo;
 this.playerProp.speedUpLeftTimes = t.speedUpLeftTimes;
 this.playerProp.completeFarmTaskTimes = t.completeFarmTaskTimes;
+if (t.userOrderTaskInfo) {
 this.playerProp.orderData = t.userOrderTaskInfo;
+console.log("============userOrderTaskInfo123");
+}
 this.playerProp.lineRedMoney = t.lineRedMoney;
+this.playerProp.groupCode = parseInt(t.groupCode);
 this.playerProp.curProductionAdTimes = t.dailyProductionTimes;
 mk.data.setTAUserID(gData.loginData.uin);
 mk.data.setTAEventUser(0, "logindays_total", this.playerProp.loginDays);
@@ -13299,6 +13353,7 @@ if (gData.loginData.isFirstIn) {
 gData.loginData.isFirstIn = !1;
 mk.data.setTAEventRegister();
 mk.data.sendDataEvent("ABTest", "触发" + this.playerProp.groupCode + "方案");
+console.log("ABTest=====" + this.playerProp.groupCode);
 mk.data.setTAEventUserStr(0, "regtime_app_id", gData.appData.appVersion);
 mk.data.setTAEventUserStr(0, "xy_uid", gData.loginData.uin);
 mk.data.setTAEventUser(0, "farm_lv", gData.gameData.playerProp.gradeLevel);
@@ -13500,9 +13555,9 @@ t.prototype.isNewPlayer = function() {
 return 0 == this.getProp(i.newPlayer);
 };
 t.prototype.getRandomPlantConfig = function(t) {
-var e = 0, a = !0, o = !1, n = !1, i = !1, s = [], c = [], l = this.playerProp.orderData, p = l.orderTaskList;
-if (l && p) {
-for (var f = this.configs.Product, y = 0; y != p.length; ++y) {
+var e = 0, a = !0, o = !1, n = !1, i = !1, s = [], c = [], l = this.playerProp.orderData;
+if (l) {
+for (var p = l.orderTaskList, f = this.configs.Product, y = 0; y != p.length; ++y) {
 var g = p[y];
 if (g.completeCount < g.taskCount) {
 if (!(g.Id <= f.length)) {
@@ -13557,13 +13612,13 @@ return this.getProductMap(e);
 return this.getProductMap(e);
 };
 t.prototype.getRandomPlantConfigExtra = function() {
-var t = 0, e = [], a = [], o = [], n = this.playerProp.orderData, i = n.orderTaskList;
-if (!n || !i) {
+var t = 0, e = [], a = [], o = [], n = this.playerProp.orderData;
+if (!n) {
 t = r.default.rnd(10001, this.getMaxProductExtra(d.nzw));
 this.nextType = 1;
 return this.getProductMap(t);
 }
-for (var s = this.configs.Product, c = 0; c != i.length; ++c) {
+for (var i = n.orderTaskList, s = this.configs.Product, c = 0; c != i.length; ++c) {
 var l = i[c];
 if (l.completeCount < l.taskCount && l.Id <= s.length) {
 var p = s[l.Id - 1];
@@ -13604,8 +13659,8 @@ return _;
 }
 };
 t.prototype.doJudgeOrderLogic = function(t) {
-var e = this.playerProp.orderData, a = e.orderTaskList;
-if (e && a) for (var o = this.configs.Product, n = 0; n != a.length; ++n) {
+var e = this.playerProp.orderData;
+if (e) for (var a = e.orderTaskList, o = this.configs.Product, n = 0; n != a.length; ++n) {
 var i = a[n];
 if (i.completeCount < i.taskCount && i.Id <= o.length) {
 var r = o[i.Id - 1];
@@ -14037,7 +14092,7 @@ this._pastureData || (this._pastureData = []);
 var t = this._pastureData.length;
 if (t < 3) {
 for (var e = this.getProductArrByType(d.dw), a = e.length, o = 30001, n = null, r = 0; r < a; r++) {
-n = this.playerProp.orderData.overTimes < e[r].value ? {
+n = this.playerProp.orderData ? this.playerProp.orderData.overTimes < e[r].value ? {
 id: o,
 state: u.Lock,
 productID: e[r].picture,
@@ -14047,6 +14102,11 @@ id: o,
 state: u.Empty,
 productID: e[r].picture,
 growSpan: 0
+} : {
+id: o,
+state: u.Lock,
+productID: e[r].picture,
+growSpan: 0
 };
 this._pastureData.push(n);
 this._pastureDataMap.set(o, n);
@@ -14085,7 +14145,7 @@ if (t < 6) {
 for (var e = 30004, a = null, o = null, n = 0; n < 6; n++) {
 o = this.getTabByConfigID(e);
 var r = this.getProductArrByType(o);
-a = this.playerProp.orderData.overTimes < r[0].value ? {
+a = this.playerProp.orderData ? this.playerProp.orderData.overTimes < r[0].value ? {
 id: e,
 state: h.Lock,
 productID: 0,
@@ -14095,6 +14155,11 @@ id: e,
 state: h.Empty,
 productID: 0,
 growSpan: 0
+} : {
+id: e,
+state: h.Lock,
+productID: 0,
+growSpan: 0
 };
 this._factoryData.push(a);
 this._factoryDataMap.set(e, a);
@@ -14108,7 +14173,6 @@ o = this.getTabByConfigID(e);
 r = this.getProductArrByType(o);
 this._factoryDataMap.set(this._factoryData[n].id, this._factoryData[n]);
 this._factoryData[n].state == h.Sick && s++;
-this.playerProp.orderData.overTimes, r[0].value;
 e++;
 }
 this.RawInsectCurArr[2] = s;
@@ -14274,7 +14338,7 @@ var c = 30001;
 s = !1;
 for (var l = 0, p = 0; p < n; p++) {
 r = this.getPastureDataMap(c);
-if (this.playerProp.orderData.overTimes >= o[p].value) {
+if (this.playerProp.orderData && this.playerProp.orderData.overTimes >= o[p].value) {
 if (r.state == u.Lock) {
 r = {
 id: c,
@@ -14304,7 +14368,7 @@ default:
 s = !1;
 var y = this.getConfigIDByTab(a);
 r = this.getFactoryDataMap(y);
-if (this.playerProp.orderData.overTimes >= o[0].value) {
+if (this.playerProp.orderData && this.playerProp.orderData.overTimes >= o[0].value) {
 if (r.state == h.Lock) {
 r = {
 id: c,
@@ -15086,7 +15150,7 @@ this.registerCallBack();
 console.log("===[Jsbsystem 显示开屏广告================================");
 mk.ad.ifShowAd && Math.random() <= gData.adData.getPerByEcpm(u.RateConfig.RC_splash) && l.default.showSplash();
 this.initRefreshEvent();
-this.initOrderUI();
+gData.gameData.playerProp.orderData ? this.initOrderUI() : mk.event.register("initOrderUi", this.initOrderUI.bind(this), this);
 };
 e.prototype.start = function() {
 this.initMusic();
@@ -15318,7 +15382,7 @@ e.prototype.onClickHuTui = function() {
 mk.data.sendDataEvent(d.DataEventId.button_click, "互推icon");
 };
 e.prototype.onClickFuli = function() {
-if (gData.gameData.playerProp.orderData.overTimes >= gData.gameData.welfareOpenLimit) {
+if (gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes >= gData.gameData.welfareOpenLimit) {
 mk.ui.openPanel("module/blessingBag/blessingBag");
 mk.data.sendDataEvent(d.DataEventId.button_click, "福利icon");
 } else mk.tip.pop("订单提现" + gData.gameData.welfareOpenLimit + "次后开启");
@@ -15851,7 +15915,7 @@ t.active = !0;
 });
 this.node_orderHbIcon.active = !0;
 this.node_getOrderReward.node.active = !0;
-this.initOrderUI();
+this.initOrderUI(!1);
 this.showTips();
 gData.gameData.init_order = !0;
 gData.gameData.checkTaskFinishUnLock();
@@ -15873,7 +15937,7 @@ var o, n, i;
 return s(this, function(r) {
 switch (r.label) {
 case 0:
-if ("0" == gData.gameData.funOpenData[11]) return [ 2 ];
+if ("0" == gData.gameData.funOpenData[11] || !gData.gameData.playerProp.orderData) return [ 2 ];
 o = function(o) {
 var i, r;
 return s(this, function(s) {
@@ -18973,7 +19037,7 @@ value: !0
 a.ServerUrl = a.HttpData = void 0;
 var o, n = function() {
 function t() {
-this.serverType = 1;
+this.serverType = 0;
 }
 t.prototype.getServerUrl = function() {
 switch (this.serverType) {
@@ -19589,10 +19653,10 @@ this.pt = a;
 };
 e.prototype.clickLuckBtn = function() {
 var t = gData.gameData.getProductArrByType(this.pt);
-if (t && t.length > 0 && 2 == t[0].unlock) {
+if (t && t.length > 0 && 2 == t[0].unlock) if (gData.gameData.playerProp.orderData) {
 var e = t[0].value - gData.gameData.playerProp.orderData.overTimes;
 mk.tip.pop("订单提现" + e + "次后解锁");
-}
+} else mk.tip.pop("提现订单后解锁");
 };
 i([ l({
 displayName: "复选组件",
@@ -20318,7 +20382,7 @@ value: !0
 a.LogTagColor = void 0;
 var n, i = function() {
 function t() {
-this.ifShowLog = !1;
+this.ifShowLog = !0;
 this._tagChar = "...";
 this._frontChar = "    ";
 this._keyValueChar = " = ";
@@ -20760,7 +20824,8 @@ uin: this.uin,
 login_ticket: this.loginTicket,
 szlm_did: mk.shuzilmM.szlm_did,
 black_box: mk.tongdunM.tdEquipID,
-mac: gData.appData.machineInfo.mac
+mac: gData.appData.machineInfo.mac,
+appVersion: gData.appData.appVersion
 };
 a = {
 uin: this.uin,
@@ -21050,6 +21115,7 @@ e.coreGame = null;
 e.isLoadComplete = !1;
 e.hasCheckChannel = !1;
 e.initShuzilm = !1;
+e.initOrderInfo = !1;
 e.addTime = 0;
 e.cool = !1;
 return e;
@@ -24347,10 +24413,10 @@ var t, e;
 return s(this, function() {
 switch (this.data.state) {
 case c.PastureState.Lock:
-if (2 == (t = gData.gameData.getProductMap(this.data.productID)).unlock) {
+if (2 == (t = gData.gameData.getProductMap(this.data.productID)).unlock) if (gData.gameData.playerProp.orderData) {
 e = t.value - gData.gameData.playerProp.orderData.overTimes;
 mk.tip.pop("订单提现" + e + "次后解锁");
-} else 1 == t.unlock && mk.tip.pop("喂食" + t.name + t.value + "次解锁");
+} else mk.tip.pop("提现订单后解锁"); else 1 == t.unlock && mk.tip.pop("喂食" + t.name + t.value + "次解锁");
 break;
 
 case c.PastureState.Empty:
@@ -24693,9 +24759,9 @@ return 1 == t.state ? null : this.doSameCheckLogic(t);
 return this.doSameCheckLogic(t);
 };
 t.prototype.nextPastureExtra = function() {
-var t = [], e = [], a = gData.gameData.playerProp.orderData, o = a.orderTaskList;
-if (a && o) {
-for (var n = gData.gameData.configs.Product, i = 0; i != o.length; ++i) {
+var t = [], e = [], a = gData.gameData.playerProp.orderData;
+if (a) {
+for (var o = a.orderTaskList, n = gData.gameData.configs.Product, i = 0; i != o.length; ++i) {
 var s = o[i];
 if (s.completeCount < s.taskCount && s.Id <= n.length) {
 var c = n[s.Id - 1];
@@ -25053,7 +25119,7 @@ this.awardLabel.string = (t.menuRedBagCoin / 100).toString();
 this.timeLabel.string = t.time;
 i = !1;
 r = 0;
-1 == t.unlock ? (i = gData.gameData.getProductUnlockById(this.data.tab, this.data.picture)) || (r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0) : 2 == t.unlock && gData.gameData.playerProp.orderData.overTimes >= t.value && (i = !0);
+1 == t.unlock ? (i = gData.gameData.getProductUnlockById(this.data.tab, this.data.picture)) || (r = gData.gameData.getProductMakeTimesById(t.picture - 1)) >= t.value && (i = !0) : 2 == t.unlock && gData.gameData.playerProp.orderData && gData.gameData.playerProp.orderData.overTimes >= t.value && (i = !0);
 this.mainNode.active = i;
 this.lockNode.active = !i;
 if (!i) {
@@ -25918,32 +25984,32 @@ e.prototype.initUIByOrderData = function(t) {
 var e = this;
 void 0 === t && (t = !1);
 if ("1" == gData.gameData.funOpenData[11]) {
-var a = gData.gameData.playerProp.orderData, o = a.orderTaskList;
-if (a && o) {
-for (var n = 0, i = 0, r = 0; r != o.length; ++r) {
-i += o[r].taskCount;
-n += o[r].taskCount - o[r].completeCount;
+var a = gData.gameData.playerProp.orderData;
+if (a) {
+for (var o = 0, n = 0, i = a.orderTaskList, r = 0; r != i.length; ++r) {
+n += i[r].taskCount;
+o += i[r].taskCount - i[r].completeCount;
 }
-if (n > 0) {
+if (o > 0) {
 this.node_Uncomplete.active = !0;
 this.node_complete.active = !1;
-var c = i - n, l = c / i;
-this.lbl_taskTimes.string = n.toString();
+var c = n - o, l = c / n;
+this.lbl_taskTimes.string = o.toString();
 cc.tween(this.sp_taskProgress).delay(.2).to(.3, {
 fillRange: l
 }, {
 onUpdate: function() {
-var t = Math.round(e.sp_taskProgress.fillRange * i);
-e.lbl_progress.string = t + "/" + i;
+var t = Math.round(e.sp_taskProgress.fillRange * n);
+e.lbl_progress.string = t + "/" + n;
 }
 }).call(function() {
-e.lbl_progress.string = c + "/" + i;
+e.lbl_progress.string = c + "/" + n;
 }).start();
 if (gData.gameData.getProp(s.GameProp.guideID) >= 11) t || mk.ad.showNative(); else {
 this.btnCanClick = !1;
 this.scheduleOnce(function() {
 e.btnCanClick = !0;
-var t = "<color=8A4312>再生产<color=ff0000>" + n + "</color>次,就可以完成\n订单立即<color=ff0000>提现</color>!</color>";
+var t = "<color=8A4312>再生产<color=ff0000>" + o + "</color>次,就可以完成\n订单立即<color=ff0000>提现</color>!</color>";
 mk.guide.open(11, t);
 }, .2);
 }
@@ -25951,7 +26017,7 @@ mk.guide.open(11, t);
 var p = gData.gameData.playerProp.orderData.cashMoney;
 this.lbl_orderValue.string = "订单已完成,可提现" + (p / 100).toFixed(2) + "元";
 this.sp_taskProgress.fillRange = 1;
-this.lbl_progress.string = i + "/" + i;
+this.lbl_progress.string = n + "/" + n;
 this.node_Uncomplete.active = !1;
 this.node_complete.active = !0;
 t || mk.ad.showNative();

BIN
build/jsb-link/src/cocos2d-jsb.jsc


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

@@ -1,6 +1,6 @@
 {
     "version": "1.0.7",
-    "serverRootDir": "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/",
+    "serverRootDir": "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/",
     "resourceRootDir": "D:\\projects\\team1_nc\\build\\jsb-link",
     "genManifestDir": "",
     "hotAddressArray": [
@@ -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": 1637639934259,
-    "genTime": 1637639934259,
+    "buildTime": 1637917070759,
+    "genTime": 1637917070759,
     "genVersion": null
 }

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
packages-hot-update/manifest/project.manifest


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

@@ -1 +1 @@
-{"version":"1.0.7","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsf/baseRemote/version.manifest"}
+{"version":"1.0.7","packageUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/","remoteManifestUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/project.manifest","remoteVersionUrl":"https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/kncdsfTest/baseRemote/version.manifest"}

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


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


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä