Browse Source

断线重连增加请求雅集数据

huangxiaoyue 1 year ago
parent
commit
b87e8d50b2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -348,7 +348,7 @@ namespace GFGGame
         }
 
         //断线重连后需要处理的事情
-        public static void OnReconnected()
+        public static async void OnReconnected()
         {
             //重连成功请求邮件和公告等离线后会变更的数据
             NoticeSProxy.ReqSystemNoticeList().Coroutine();
@@ -358,6 +358,7 @@ namespace GFGGame
             TaskSProxy.GetTaskInfos();
             ArenaDataManager.Instance.ReqArenaInfo();
             if (LeagueDataManager.Instance.Type == LeagueJoinType.Join) {
+                await LeagueSproxy.ReqGetLeagueInfo();
                 LeagueSproxy.GetTeapartyMatchingInfos(RoleDataManager.roleId).Coroutine();
                 LeagueSproxy.GetTeapartyInfos().Coroutine();
                 LeagueSproxy.ReqJoinAnswer().Coroutine();