Bläddra i källkod

雅集福利周福利跨周没有显示出来问题

huangxiaoyue 1 år sedan
förälder
incheckning
5276af7af6
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      GameClient/Assets/Game/HotUpdate/Data/LeagueDataManager.cs

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

@@ -193,29 +193,29 @@ namespace GFGGame
             for (int i = 0; i < LeagueWelfareCfgArray.Instance.dataArray.Length; i++)
             {
                 LeagueWelfareCfg welfareCfg = LeagueWelfareCfgArray.Instance.dataArray[i];
-                bool isBuy = false;
+                bool hasDay = false;
                 bool isGet = false;
                 switch (welfareCfg.type)
                 {
                     case LeagueWelfareType.Day:
-                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareDay) == 1;
+                        hasDay = GetNumeriValue(LeagueNumericType.LeagueWelfareDay) == 1;
                         isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareDay) == 1;
                         break;
                     case LeagueWelfareType.Week:
-                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareWeek) == 1;
+                        hasDay = GetNumeriValue(LeagueNumericType.LeagueWelfareWeekLeftTimes) > 0;
                         isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareWeek) == 1;
                         break;
                     case LeagueWelfareType.SuperWeek:
-                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperWeek) == 1;
+                        hasDay = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperLeftTimes) > 0;
                         isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperWeek) == 1;
                         break;
                     case LeagueWelfareType.SuperDay:
-                        isBuy = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperDay) == 1;
+                        hasDay = GetNumeriValue(LeagueNumericType.LeagueWelfareSuperDay) == 1;
                         isGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.LeagueWelfareSuperDay) == 1;
                         break;
                 }
                 // ET.Log.Debug("isBuy:" + isBuy);
-                if (isBuy)
+                if (hasDay)
                 {
                     LeagueGiftGetData giftGetData = new LeagueGiftGetData();
                     giftGetData.Type = welfareCfg.type;