浏览代码

登录优化

guodong 3 年之前
父节点
当前提交
2861d263be
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -67,7 +67,11 @@ namespace GFGGame
 
             ServerInfo recentlyServerInfo = serverInfosComponent.recentlyServerInfo;
             UpdateServer(recentlyServerInfo);
-            OnClickBtnStart();
+            //尝试自动登录
+            if (serverInfosComponent.ServerInfoList.Count <= 0)
+            {
+                OnClickBtnStart();
+            }
         }
 
         protected override void OnHide()