少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-19 493022e23d8a4788ff5c8ff550273bb06746adff
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
2个文件已修改
33 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/LoginModel.cs 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -681,6 +681,10 @@
         * ClientPackage向sdk发送分包id
         */
        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();
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;
                    }