浏览代码

茶话会在4点59分临界值收到服务器下发的期数清0做屏蔽判断

huangxiaoyue 1 年之前
父节点
当前提交
3bc44749b9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnswerView.cs

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnswerView.cs

@@ -53,7 +53,9 @@ namespace GFGGame
                 var index = (int)this.viewData;
                 _ui.m_c1.selectedIndex = index;
                 var openCfg = TeapartyOpenCfgArray.Instance.GetCfg(LeagueDataManager.Instance.TeaPartyId);
-                _ui.m_txtPlayRule.text =  TextDescCfgArray.Instance.GetCfg(300023).text + openCfg.preview;
+                if (openCfg != null) { 
+                    _ui.m_txtPlayRule.text =  TextDescCfgArray.Instance.GetCfg(300023).text + openCfg.preview;
+                }
                 _ui.m_btnTeaParty.visible = LeagueDataManager.Instance.TeaPartyStatus != 0;
             }
             else {