From aee09931f8eabdbad939117008224ed495bb62fa Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 29 八月 2018 16:52:52 +0800
Subject: [PATCH] 3064  修改debug 登录工具

---
 System/Debug/DebugLogin.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/System/Debug/DebugLogin.cs b/System/Debug/DebugLogin.cs
index 1899095..8fb0fda 100644
--- a/System/Debug/DebugLogin.cs
+++ b/System/Debug/DebugLogin.cs
@@ -52,11 +52,14 @@
         passwordRecorder = password.text;
         istokenRecorder = isToken.isOn;
 
+        if (!string.IsNullOrEmpty(appid.text))
+        {
+            VersionConfig.Get().m_AppId = appid.text;
+        }
+
         if (isToken.isOn)
         {
             var loginModel = ModelCenter.Instance.GetModel<LoginModel>();
-
-            VersionConfig.Get().m_AppId = appid.text;
             loginModel.sdkLoginResult = new SDKUtility.FP_LoginOk()
             {
                 account = account.text,
@@ -109,7 +112,6 @@
                 var ip = ServerListCenter.Instance.currentServer.region_domain;
                 var port = ServerListCenter.Instance.currentServer.login_port;
                 var gamePort = ServerListCenter.Instance.currentServer.game_port;
-                VersionConfig.Get().m_AppId = appid.text;
                 loginModel.AccountLogin(ip, port, gamePort);
             }
             else

--
Gitblit v1.8.0