Browse Source

每日首次登录弹签到弹窗

zhaoyang 3 years ago
parent
commit
7467e23a81
1 changed files with 5 additions and 2 deletions
  1. 5 2
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

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

@@ -125,8 +125,11 @@ namespace GFGGame
             UpdateRoleLvl();
             UpdateRoleLvl();
             _valueBarController.OnShown();
             _valueBarController.OnShown();
 
 
-            // CheckFunOpen();
-            // UpdateToCheckGuide();
+            long lastTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
+            if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
+            {
+                ViewManager.Show<DailyLoginView>();
+            }
             Timers.inst.AddUpdate(Update);
             Timers.inst.AddUpdate(Update);
         }
         }