소스 검색

屏蔽后端报错导致的卡死

zhaoyang 2 년 전
부모
커밋
7a34bcd4f4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

@@ -28,6 +28,7 @@ namespace GFGGame
             ET.Log.Debug("vipLv:" + level);
             ET.Log.Debug("vipExp:" + RoleDataManager.vipExp);
             VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
+            if (vipCfg == null) return;
             VipCfg nextVipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv + 1);
             com.m_txtTipsFull.visible = RoleDataManager.vipExp >= vipCfg.num && nextVipCfg == null;
             com.m_grpTips.visible = nextVipCfg != null || RoleDataManager.vipExp < vipCfg.num;