Bladeren bron

修复任务红包提现后没打开牧场问题

kaka 4 jaren geleden
bovenliggende
commit
db16ebe138

BIN
assets/resources/game/coregame/texture/main/main/gameFaIn.jpeg


+ 0 - 36
assets/resources/game/coregame/texture/main/main/gameFaIn.jpeg.meta

@@ -1,36 +0,0 @@
-{
-  "ver": "2.3.5",
-  "uuid": "a02ca074-7ccc-458c-af56-59250031200e",
-  "type": "sprite",
-  "wrapMode": "clamp",
-  "filterMode": "bilinear",
-  "premultiplyAlpha": false,
-  "genMipmaps": false,
-  "packable": true,
-  "width": 720,
-  "height": 1437,
-  "platformSettings": {},
-  "subMetas": {
-    "gameFaIn": {
-      "ver": "1.0.4",
-      "uuid": "a02ca074-7ccc-458c-af56-59250031200e@6c48a",
-      "rawTextureUuid": "a02ca074-7ccc-458c-af56-59250031200e",
-      "trimType": "auto",
-      "trimThreshold": 1,
-      "rotated": false,
-      "offsetX": 0,
-      "offsetY": 0,
-      "trimX": 0,
-      "trimY": 0,
-      "width": 720,
-      "height": 1437,
-      "rawWidth": 720,
-      "rawHeight": 1437,
-      "borderTop": 0,
-      "borderBottom": 0,
-      "borderLeft": 0,
-      "borderRight": 0,
-      "subMetas": {}
-    }
-  }
-}

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

@@ -532,6 +532,7 @@ export class GameData {
 
         this.playerProp.userFarmTaskInfo = response.data.userFarmTaskInfo;
         if (this.playerProp.userFarmTaskInfo.completeCount >= this.playerProp.userFarmTaskInfo.taskCount) {
+            mk.ui.closeAllUI();
             mk.guide.open(5);
         }
         if (isNeedRefresh) {

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

@@ -61,7 +61,7 @@ export class GradeRewardData extends Data {
             mk.tip.pop(`获得${addExp}点等级经验`);
             if (gData.gameData.playerProp.gradeLevel < response.data.farmLevel) {
                 gData.gameData.playerProp.gradeLevel = response.data.farmLevel;
-                gData.gameData.checkGradeUpUnLock();
+                // gData.gameData.checkGradeUpUnLock();
             }
             gData.gameData.playerProp.farmExpValue = response.data.userExp;
             gData.gameData.playerProp.farmGradeData = response.data.userFarmGrageRewardInfo;

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

@@ -219,7 +219,7 @@ export default class RedBagTask extends cc.Component {
         const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
         this.lbl_reward_value.string = cash_data.money / 100 + '元';
         this.lbl_progress.string = newRedMoney + '/' + cash_data.redMoney / 100;
-        const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / (cash_data.redMoney/100);
+        const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / (cash_data.redMoney / 100);
         // this.spr_cash_out.fillRange = fillRange;
         cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();
         if (redMoney >= cash_data.redMoney) {
@@ -266,7 +266,7 @@ export default class RedBagTask extends cc.Component {
 
         mk.data.setTAEventUser(0, 'Cumulative_task', gData.gameData.playerProp.completeFarmTaskTimes);
         //gData.gameData.init_redBagTask = true;
-        // gData.gameData.checkGradeUpUnLock();
+        gData.gameData.checkGradeUpUnLock();
         gData.gameData.init_task = true;
 
         this.maxNum = gData.gameData.playerProp.userFarmTaskInfo.taskCount;