浏览代码

屏蔽后端报错导致的卡死

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;