Просмотр исходного кода

Bugly茶话会倒计时增加判null判断,和打印修改

huangxiaoyue 1 год назад
Родитель
Сommit
710227582d

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs

@@ -247,7 +247,11 @@ namespace GFGGame
             string strTimeText = "挑战剩余时间:";
             if(LeagueDataManager.Instance.TeaPartyStatus == LeagueTeaPartyStatus.YesGo)
                 strTimeText = "公开剩余时间:";
-            ET.Log.Error("UpDataOverTime TeaPartyCloseTime is null=" + LeagueDataManager.Instance.TeaPartyCloseTime);
+            if (_ui == null || _ui.m_txtOverTime == null)
+            {
+                ET.Log.Error("UpDataOverTime _ui is null=" + _ui);
+                return;
+            }
             _ui.m_txtOverTime.text = strTimeText + TimeUtil.GetTimeLeft(TimeInfo.Instance.ServerNow(), LeagueDataManager.Instance.TeaPartyCloseTime);
         }