少年修仙传客户端代码仓库
client_Hale
2019-02-21 e57a69898f6da8e71aa8ccdeaec2bdb02f82078d
382 小牛渠道, 超级梦渠道相关支持
4个文件已修改
64 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SDKUtilityWrap.cs 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SDKUtilityWrap.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/LoginModel.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
Lua/Gen/SDKUtilityWrap.cs
@@ -107,13 +107,15 @@
            Utils.EndObjectRegister(type, L, translator, null, null,
                null, null, null);
            Utils.BeginClassRegister(type, L, __CreateInstance, 2, 4, 0);
            Utils.BeginClassRegister(type, L, __CreateInstance, 2, 6, 0);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetApplicationContext", _m_GetApplicationContext_xlua_st_);
            
            
            
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Yj_AppID", _g_get_Yj_AppID);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ThirdPartVersion", _g_get_ThirdPartVersion);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Yj_SpID", _g_get_Yj_SpID);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ThirdPartAppID", _g_get_ThirdPartAppID);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Yj_BanHao", _g_get_Yj_BanHao);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "builtinAssetCopyFinished", _g_get_builtinAssetCopyFinished);
            
@@ -964,6 +966,18 @@
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ThirdPartVersion(RealStatePtr L)
        {
            try {
                LuaAPI.lua_pushstring(L, SDKUtility.ThirdPartVersion);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Yj_SpID(RealStatePtr L)
        {
            try {
@@ -976,6 +990,18 @@
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ThirdPartAppID(RealStatePtr L)
        {
            try {
                LuaAPI.lua_pushstring(L, SDKUtility.ThirdPartAppID);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Yj_BanHao(RealStatePtr L)
        {
            try {
Lua/Gen/SDKUtilityWrap.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 8843f8c727baa1e4cb02afe3a9d6061d
timeCreated: 1550120582
timeCreated: 1550657389
licenseType: Pro
MonoImporter:
  serializedVersion: 2
System/Login/LoginModel.cs
@@ -336,13 +336,13 @@
                    else if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Xn)
                    {
                        send.IDType = 7;
                        send.Extra += ("|" + SDKUtility.Yj_AppID + "|" + SDKUtility.Yj_Version);
                        send.Extra += ("|" + SDKUtility.ThirdPartAppID + "|" + SDKUtility.ThirdPartVersion);
                        send.ExtraLen = (byte)send.Extra.Length;
                    }
                    else if (SDKUtility.Instance.ChannelPlatform == SDKUtility.E_ChannelPlatform.Cjm)
                    {
                        send.IDType = 8;
                        send.Extra += ("|" + SDKUtility.Yj_AppID + "|" + SDKUtility.Instance.FreePlatformInfo.token);
                        send.Extra += ("|" + SDKUtility.ThirdPartAppID + "|" + SDKUtility.Instance.FreePlatformInfo.token);
                        send.ExtraLen = (byte)send.Extra.Length;
                    }
                    send.AccID = sdkLoginResult.account;