|
@@ -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)
|