瀏覽代碼

修复联盟福利礼包显示不全的BUG

hexiaojie 1 年之前
父節點
當前提交
442b5176e3
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      GameClient/Assets/Game/HotUpdate/Data/LeagueDataManager.cs

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Data/LeagueDataManager.cs

@@ -202,16 +202,16 @@ namespace GFGGame
                         isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareDay) == 1;
                         break;
                     case LeagueWelfareType.Week:
-                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareWeek) == 1;
+                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareWeekLeftTimes) > 0;
                         isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareWeek) == 1;
                         break;
                     case LeagueWelfareType.SuperWeek:
                         isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperWeek) == 1;
-                        isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperWeek) == 1;
+                        isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperDay) == 1;
                         break;
                     case LeagueWelfareType.SuperDay:
-                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperDay) == 1;
-                        isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperDay) == 1;
+                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperLeftTimes) > 0;
+                        isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperWeek) == 1;
                         break;
                 }
                 // ET.Log.Debug("isBuy:" + isBuy);