From 585d01f70c8398500a9e581903bacc345a133840 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 31 八月 2018 17:29:15 +0800
Subject: [PATCH] 3064 修改debug 登录工具
---
System/Debug/DebugLogin.cs | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/System/Debug/DebugLogin.cs b/System/Debug/DebugLogin.cs
index 8fb0fda..9e6352a 100644
--- a/System/Debug/DebugLogin.cs
+++ b/System/Debug/DebugLogin.cs
@@ -8,6 +8,7 @@
public class DebugLogin : MonoBehaviour
{
public InputField appid;
+ public InputField serverId;
public InputField account;
public InputField password;
@@ -18,6 +19,13 @@
get { return LocalSave.GetString("DebugLogin_AppId"); }
set { LocalSave.SetString("DebugLogin_AppId", value); }
}
+
+ string serverIdRecorder
+ {
+ get { return LocalSave.GetString("DebugLogin_ServerId"); }
+ set { LocalSave.SetString("DebugLogin_ServerId", value); }
+ }
+
string accountRecorder
{
@@ -40,6 +48,7 @@
private void OnEnable()
{
appid.text = appidRecorder;
+ serverId.text = serverIdRecorder;
account.text = accountRecorder;
password.text = passwordRecorder;
isToken.isOn = istokenRecorder;
@@ -48,6 +57,7 @@
public void Login()
{
appidRecorder = appid.text;
+ serverIdRecorder = serverId.text;
accountRecorder = account.text;
passwordRecorder = password.text;
istokenRecorder = isToken.isOn;
@@ -73,6 +83,13 @@
var ip = ServerListCenter.Instance.currentServer.region_domain;
var port = ServerListCenter.Instance.currentServer.login_port;
var gamePort = ServerListCenter.Instance.currentServer.game_port;
+ if (string.IsNullOrEmpty(serverId.text))
+ {
+ var serverData = ServerListCenter.Instance.currentServer;
+ serverData.region_flag = int.Parse(serverId.text);
+ ServerListCenter.Instance.currentServer = serverData;
+ }
+
loginModel.AccountLogin(ip, port, gamePort);
}
else
@@ -112,6 +129,13 @@
var ip = ServerListCenter.Instance.currentServer.region_domain;
var port = ServerListCenter.Instance.currentServer.login_port;
var gamePort = ServerListCenter.Instance.currentServer.game_port;
+ if (string.IsNullOrEmpty(serverId.text))
+ {
+ var serverData = ServerListCenter.Instance.currentServer;
+ serverData.region_flag = int.Parse(serverId.text);
+ ServerListCenter.Instance.currentServer = serverData;
+ }
+
loginModel.AccountLogin(ip, port, gamePort);
}
else
--
Gitblit v1.8.0