浏览代码

10级之前主界面不自动弹窗

guodong 1 年之前
父节点
当前提交
56419441e6
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -876,7 +876,6 @@ namespace GFGGame
         {
             if (redPointUpdateFrame < 0) return;
             if (!GameGlobal.AfterDataInited) return;
-            if (!GameGlobal.AutoShowCompleted) return;
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
             LogUtil.LogEditor($"MainUIView UpdateRedDot redPointUpdateFrame {redPointUpdateFrame}");
             if (redPointUpdateFrame == 0)
@@ -1059,14 +1058,15 @@ namespace GFGGame
         }
         private void CheckAutoShowViews()
         {
+            if (RoleDataManager.lvl < 10) return;
+            if (GuideDataManager.currentGuideId <= 0) return;
             if (GameGlobal.AutoShowCompleted) return;
             if (!GameGlobal.AfterDataInited) return;
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
             //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
             if (GameGlobal.AutoSevenDayLoginView)
             {
-                if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
-                    GuideDataManager.currentGuideId <= 0)
+                if (ActivityDataManager.Instance.CanGetSevenDayBonus())
                 {
                     ViewManager.Show<SevenDayLoginView>();
                     return;