浏览代码

系统公告

zhaoyang 3 年之前
父节点
当前提交
f1591d4b3b
共有 1 个文件被更改,包括 4 次插入3 次删除
  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)