From 493022e23d8a4788ff5c8ff550273bb06746adff Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 19 一月 2019 14:00:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Login/LoginModel.cs | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/System/Login/LoginModel.cs b/System/Login/LoginModel.cs
index dee4bdb..0aa04f8 100644
--- a/System/Login/LoginModel.cs
+++ b/System/Login/LoginModel.cs
@@ -16,7 +16,8 @@
public SDKUtility.FP_LoginOk sdkLoginResult;
public SDKUtility.FP_CheckIDAuthentication sdkIDCheckIDAuthentication;
- public string localSaveAccountName {
+ public string localSaveAccountName
+ {
get { return LocalSave.GetString(USER_ACCOUNT); }
set { LocalSave.SetString(USER_ACCOUNT, value); }
}
@@ -25,19 +26,22 @@
public event Action accountBindOkEvent;
bool m_ReconnecBackGround = false;
- public bool reconnectBackGround {
+ public bool reconnectBackGround
+ {
get { return m_ReconnecBackGround; }
set { m_ReconnecBackGround = value; }
}
bool m_OnCreateRole = false;
- public bool onCreateRole {
+ public bool onCreateRole
+ {
get { return m_OnCreateRole; }
set { m_OnCreateRole = value; }
}
bool m_Busy = false;
- public bool busy {
+ public bool busy
+ {
get { return m_Busy; }
set { m_Busy = value; }
}
@@ -171,6 +175,13 @@
if (sdkLogined)
{
AccountLogin(sdkLoginResult.account, _ip, _port, _gamePort);
+ }
+ else
+ {
+ if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Yl)
+ {
+ SDKUtility.Instance.FreePlatformLogin();
+ }
}
}
@@ -315,7 +326,8 @@
SDKUtility.Yj_AppID + "|" +
SDKUtility.Instance.FreePlatformInfo.accountID);
send.ExtraLen = (byte)send.Extra.Length;
- }else if(SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Yl)
+ }
+ else if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Yl)
{
send.IDType = 6;
}
--
Gitblit v1.8.0