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();
 
             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>();
+                GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
             }
             Timers.inst.AddUpdate(Update);
         }