瀏覽代碼

七日登陆弹窗

zhaoyang 3 年之前
父節點
當前提交
87d0661caf
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

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

@@ -126,9 +126,10 @@ namespace GFGGame
             _valueBarController.OnShown();
             _valueBarController.OnShown();
 
 
             long lastTime = GameGlobal.lastLoginTime;// GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
             long lastTime = GameGlobal.lastLoginTime;// GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
-            if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
+            if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()) && ActivityDataManager.Instance.dailyLoginBonusStatus == ConstBonusStatus.CAN_GET)
             {
             {
                 ViewManager.Show<DailyLoginView>();
                 ViewManager.Show<DailyLoginView>();
+                GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
             }
             }
             Timers.inst.AddUpdate(Update);
             Timers.inst.AddUpdate(Update);
         }
         }