浏览代码

断线重连重新请求好友信息

zhaoyang 2 年之前
父节点
当前提交
808cc4adc2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

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

@@ -93,7 +93,7 @@ namespace GFGGame
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
             EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
             EventAgent.DispatchEvent(ConstMessage.LOGIN_SUCCESS);
-            if(AntiAddictionController.CheckAntiAddictionWhenLogin())
+            if (AntiAddictionController.CheckAntiAddictionWhenLogin())
             {
                 ViewManager.Hide<ModalStatusView>();
                 return;
@@ -267,6 +267,7 @@ namespace GFGGame
             //重连成功请求邮件和公告等离线后会变更的数据
             NoticeSProxy.ReqSystemNoticeList().Coroutine();
             MailSProxy.ReqMailCount().Coroutine();
+            FriendSProxy.ReqAllFriendInfos().Coroutine();
             ViewManager.Hide<ModalStatusView>();
         }
     }