瀏覽代碼

系统公告

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