浏览代码

登录fix

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

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

@@ -99,15 +99,8 @@ namespace GFGGame
             await GetServerInfos();
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
 
-            if (serverInfosComponent.ServerInfoList.Count > 1)
-            {
-                ViewManager.Hide<ModalStatusView>();
-                EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
-            }
-            else
-            {
-                await GetRoles();
-            }
+            ViewManager.Hide<ModalStatusView>();
+            EventAgent.DispatchEvent(ConstMessage.SERVER_CHANGE, serverInfosComponent.CurrentServerId);
         }
 
         private static void OnLoginFail(int errorCode)