Explorar o código

屏蔽后端报错导致的卡死

zhaoyang %!s(int64=2) %!d(string=hai) anos
pai
achega
7a34bcd4f4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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("vipLv:" + level);
             ET.Log.Debug("vipExp:" + RoleDataManager.vipExp);
             ET.Log.Debug("vipExp:" + RoleDataManager.vipExp);
             VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
             VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
+            if (vipCfg == null) return;
             VipCfg nextVipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv + 1);
             VipCfg nextVipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv + 1);
             com.m_txtTipsFull.visible = RoleDataManager.vipExp >= vipCfg.num && nextVipCfg == null;
             com.m_txtTipsFull.visible = RoleDataManager.vipExp >= vipCfg.num && nextVipCfg == null;
             com.m_grpTips.visible = nextVipCfg != null || RoleDataManager.vipExp < vipCfg.num;
             com.m_grpTips.visible = nextVipCfg != null || RoleDataManager.vipExp < vipCfg.num;