瀏覽代碼

活动界面时间到期问题

zhangyuqian 1 年之前
父節點
當前提交
f987938367
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs

@@ -71,7 +71,10 @@ namespace GFGGame
             || ActivityDataManager.Instance.AllSevenDayBonusGot());
 
             _limitChargeInfo = ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.XSLC);
-            _limitChargeInfo.Add(ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.OpenServerCharge)[0]);
+            if (ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.OpenServerCharge).Count > 0)
+            {
+                _limitChargeInfo.Add(ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.OpenServerCharge)[0]);
+            }
             _ui.m_comList.m_listLimitCharge.numItems = _limitChargeInfo.Count;
             _ui.m_comList.m_listLimitCharge.ResizeToFit();