소스 검색

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