From fb7d2dbb19dd404b9c2374eab59d38606cb0f96c Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期六, 19 一月 2019 11:06:25 +0800
Subject: [PATCH] 5963 多人 【前端】【1.5.0开始】各平台的注册数据同步为游戏后台统计的方式
---
System/Login/LoginModel.cs | 22 +++++++++++++++++-----
Core/SDK/SDKUtility.cs | 11 +++++++++++
2 files changed, 28 insertions(+), 5 deletions(-)
diff --git a/Core/SDK/SDKUtility.cs b/Core/SDK/SDKUtility.cs
index 7fcc086..a2ddd16 100644
--- a/Core/SDK/SDKUtility.cs
+++ b/Core/SDK/SDKUtility.cs
@@ -681,6 +681,10 @@
* ClientPackage鍚憇dk鍙戦�佸垎鍖卛d
*/
public const int ClientPackage = 400;
+ /**
+ * 鍙戦�佷簨浠�
+ */
+ public static int SendRegistEvent = 500;
}
#endregion
@@ -1081,6 +1085,13 @@
SendMessageToSDK(m_Json);
}
+ public void SendRegistEvent()
+ {
+ m_Json.Clear();
+ m_Json["code"] = CodeU2A.SendRegistEvent;
+ SendMessageToSDK(m_Json);
+ }
+
public void CreateRoleOk(string roleID, string roleName, string time)
{
m_Json.Clear();
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