Browse Source

系统公告

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

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

@@ -96,14 +96,14 @@ namespace GFGGame
 
         private static async ETTask OnLoginSuccess()
         {
-            ReqNoticeInfo();
             await GetServerInfos();
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
+            EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
+            // await ReqNoticeInfo();
 
             ViewManager.Hide<ModalStatusView>();
-            EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
         }
-        private static async void ReqNoticeInfo()
+        private static async ETTask ReqNoticeInfo()
         {
             bool result = await NoticeSProxy.ReqSystemNoticeList();
             if (result)
@@ -120,6 +120,7 @@ namespace GFGGame
                     }
                 }
             }
+            return;
         }
 
         private static void OnLoginFail(int errorCode)