瀏覽代碼

每日首次登录弹签到弹窗

zhaoyang 3 年之前
父節點
當前提交
7467e23a81
共有 1 個文件被更改,包括 5 次插入2 次删除
  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();
             _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);
         }