少年修仙传客户端代码仓库
client_Hale
2019-02-21 e57a69898f6da8e71aa8ccdeaec2bdb02f82078d
Core/SDK/SDKUtility.cs
@@ -38,12 +38,17 @@
        get; private set;
    }
    public static string Yj_Version
    public static string ThirdPartVersion
    {
        get; private set;
    }
    public static string Yj_SpID
    {
        get; private set;
    }
    public static string ThirdPartAppID
    {
        get; private set;
    }
@@ -125,7 +130,7 @@
    {
        Yj_AppID = string.Empty;
        Yj_SpID = string.Empty;
        Yj_Version = string.Empty;
        ThirdPartVersion = string.Empty;
        RegistrationID = string.Empty;
        AssetCopyFinished = false;
        ChannelPlatform = E_ChannelPlatform.Free;
@@ -502,19 +507,19 @@
                {
                    if (_dict.Contains("xnappid"))
                    {
                        Yj_AppID = _json["xnappid"].ToString();
                        ThirdPartAppID = _json["xnappid"].ToString();
                    }
                    if (_dict.Contains("xnversion"))
                    {
                        Yj_Version = _json["xnversion"].ToString();
                        ThirdPartVersion = _json["xnversion"].ToString();
                    }
                }
                else if (ChannelPlatform == E_ChannelPlatform.Cjm)
                {
                    if (_dict.Contains("cjmappid"))
                    {
                        Yj_AppID = _json["cjmappid"].ToString();
                        ThirdPartAppID = _json["cjmappid"].ToString();
                    }
                }
@@ -920,6 +925,12 @@
        else if (ChannelPlatform == E_ChannelPlatform.Xn)
        {
            m_PaymentTable["RechargeChannel"] = "7";
            m_PaymentTable["serverName"] = ServerListCenter.Instance.currentServer.name;
            m_PaymentTable["prodCode"] = cpInfo;
            m_PaymentTable["prodName"] = title;
            m_PaymentTable["prodNum"] = "1";
            m_PaymentTable["prodPrice"] = money.ToString();
            m_PaymentTable["extraData"] = "";
        }
        else if (ChannelPlatform == E_ChannelPlatform.Cjm)
        {
@@ -980,6 +991,15 @@
                        if (ChannelPlatform == E_ChannelPlatform.Mr)
                        {
                            m_Json["notifyurl"] = _json["notifyurl"];
                        }else if(ChannelPlatform == E_ChannelPlatform.Xn)
                        {
                            if((_json as IDictionary).Contains("cpSign"))
                            {
                                m_Json["cpSign"] = _json["cpSign"];
                            }else
                            {
                                Debug.Log("没有收到cpSign: " + message);
                            }
                        }
#if UNITY_IOS
                        m_Json["identifier"] = VersionConfig.Get().bundleIdentifier;