少年修仙传客户端代码仓库
client_Hale
2018-11-19 e5e9dcc7d02b7d7ca8d67f5083292c8e7129e346
4241 易接sdk
2个文件已修改
48 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/LoginModel.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -23,6 +23,7 @@
        Mr = 2,// 猫耳
        Sp = 3,// 思璞
        Js = 4,// 极速
        Yj = 5,// 易接
    }
    public E_ChannelPlatform ChannelPlatform { get; set; }
@@ -355,6 +356,10 @@
                        {
                            ChannelPlatform = E_ChannelPlatform.Js;
                        }
                        else if (_channelPlatform.Equals("yj"))
                        {
                            ChannelPlatform = E_ChannelPlatform.Yj;
                        }
                    }
                }
                break;
@@ -590,6 +595,8 @@
        public int accountID;
        public string timeStamp;
        public string sessionID;
        public string yjAppId;
        public string yjSdkId;
    }
    public struct FP_CheckIDAuthentication
@@ -695,6 +702,14 @@
        else if (ChannelPlatform == E_ChannelPlatform.Sp)
        {
            m_PaymentTable["RechargeChannel"] = "2";
        }
        else if (ChannelPlatform == E_ChannelPlatform.Js)
        {
            m_PaymentTable["RechargeChannel"] = "3";
        }
        else if (ChannelPlatform == E_ChannelPlatform.Yj)
        {
            m_PaymentTable["RechargeChannel"] = "5";
        }
        var _stringBuilder = new System.Text.StringBuilder();
@@ -879,6 +894,16 @@
            FreePlatformInfo.timeStamp = (string)json["timeStamp"];
        }
        if (_iDict.Contains("yjSdkId"))
        {
            FreePlatformInfo.yjSdkId = (string)json["yjSdkId"];
        }
        if (_iDict.Contains("yjAppId"))
        {
            FreePlatformInfo.yjAppId = (string)json["yjAppId"];
        }
        FreePlatformInfo.phone = 0;
    }
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; }
        }
@@ -297,12 +301,21 @@
                        send.IDType = 3;
                        send.Extra += ("|" + SDKUtility.Instance.FreePlatformInfo.sessionID);
                        send.ExtraLen = (byte)send.Extra.Length;
                    }else if(SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Js)
                    }
                    else if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Js)
                    {
                        send.IDType = 4;
                        send.Extra += ("|" + sdkLoginResult.token);
                        send.ExtraLen = (byte)send.Extra.Length;
                    }
                    else if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Yj)
                    {
                        send.IDType = 5;
                        send.Extra += ("|" + SDKUtility.Instance.FreePlatformInfo.yjSdkId + "|" +
                                       SDKUtility.Instance.FreePlatformInfo.yjAppId + "|" +
                                       SDKUtility.Instance.FreePlatformInfo.accountID);
                        send.ExtraLen = (byte)send.Extra.Length;
                    }
                    send.AccID = sdkLoginResult.account;
                    send.Password = sdkLoginResult.token;
                    send.MAC = DeviceUtility.GetMac();