Преглед на файлове

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

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>();
         }
     }