Browse Source

七日签到弹窗

zhaoyang 3 years ago
parent
commit
af51469d22
1 changed files with 4 additions and 3 deletions
  1. 4 3
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

+ 4 - 3
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -33,7 +33,8 @@ namespace GFGGame
         public static void GetGameCfg()
         {
             var url = LauncherConfig.cfgUrl.Replace("{cfgName}", GameGlobal.cfgName);
-            HttpTool.Instance.Get(url, (string data) => {
+            HttpTool.Instance.Get(url, (string data) =>
+            {
                 //初始化游戏配置
                 GameConfig.InitData(data);
                 //初始化平台配置
@@ -103,6 +104,7 @@ namespace GFGGame
 
             await InstanceZonesSProxy.GetInstanceZonesInfos();
             await StorageSProxy.ReqGetClientValues();
+            await ActivitySProxy.ReqDailyLoginInfos();
 
             GameGlobal.lastLoginTime = StorageDataManager.Instance.GetStorageValue(ConstStorageId.LAST_LOGIN_TIME);
             long lastTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
@@ -173,7 +175,7 @@ namespace GFGGame
         //注销
         public static async ETTask Logout()
         {
-            if(PlatformManager.IsTaptap)
+            if (PlatformManager.IsTaptap)
             {
                 await TDSUser.Logout();
             }
@@ -224,7 +226,6 @@ namespace GFGGame
             RechargeSProxy.ReqRequestGiftBagInfo().Coroutine();
             RechargeSProxy.ReqExchangeInfo().Coroutine();
             DailyTaskSProxy.ReqDailyTaskInfos().Coroutine();
-            ActivitySProxy.ReqDailyLoginInfos().Coroutine();
             NoticeSProxy.ReqSystemNoticeList().Coroutine();
             StudioSProxy.ReqStudioInfos().Coroutine();
             MailSProxy.ReqMailCount().Coroutine();