Browse Source

Merge branch 'master' of http://git.gfggame.com:3000/gfg/client

zhaoyang 3 years ago
parent
commit
f5188e9799
1 changed files with 2 additions and 9 deletions
  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();
             await GetServerInfos();
             ServerInfosComponent serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
             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)
         private static void OnLoginFail(int errorCode)