Bladeren bron

没有签到-不小心关闭签到页面-重新登陆,界面需要再次弹出。登录时修改判断

zhangyuqian 1 jaar geleden
bovenliggende
commit
0a8bbe5e78

+ 1 - 0
GameClient/Assets/Game/HotUpdate/GameGlobal.cs

@@ -29,6 +29,7 @@ namespace GFGGame
         public static bool DataInited;
         public static NumericComponent myNumericComponent;
         public static int lastLoginTime;//上次登录时间
+        public static bool isLogon;//是否是重新登录
 
 
 

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -102,6 +102,8 @@ namespace GFGGame
                 //初始化平台配置
                 QDManager.InitPlatform();
             }
+
+            GameGlobal.isLogon = true;
         }
 
         protected override void OnHide()

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

@@ -216,15 +216,17 @@ namespace GFGGame
             //long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
 
             //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
-            //{
+            if (GameGlobal.isLogon)
+            {
                 if (ActivityDataManager.Instance.sevenDayLoginBonusStatus == ConstBonusStatus.CAN_GET &&
                     GuideDataManager.currentGuideId <= 0)
                 {
                     ViewManager.Show<SevenDayLoginView>();
+                    GameGlobal.isLogon = false;
                 }
                 
                 //GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
-            //}
+            }
 
             SetPos();
             GetAdIds();