少年修仙传客户端代码仓库
hch
2024-05-14 61422470c1131d538f4d8041a655c1cd87a20e43
0312 不同平台充值读取不同的商品编号
2个文件已修改
12 ■■■■ 已修改文件
Core/GameEngine/Model/Config/OrderInfoConfig.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/ynmbxxjUtil.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/OrderInfoConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           Fish
//    [  Date ]:           2024年5月10日
//    [  Date ]:           2024年5月14日
//--------------------------------------------------------
using System.Collections.Generic;
@@ -21,6 +21,7 @@
    public readonly int CTGID;
    public readonly float UsdMoney;
    public readonly string StoreOrderInfo;
    public readonly string StoreOrderInfo2;
    public OrderInfoConfig()
    {
@@ -45,6 +46,8 @@
            float.TryParse(tables[5],out UsdMoney); 
            StoreOrderInfo = tables[6];
            StoreOrderInfo2 = tables[7];
        }
        catch (Exception ex)
        {
Core/SDK/ynmbxxjUtil.cs
@@ -1079,7 +1079,12 @@
            }
        }
        money = orderInfo.UsdMoney;
#if !(UNITY_IOS || UNITY_IPHONE)
        string storeOrderInfo = orderInfo.StoreOrderInfo;
#else
        string storeOrderInfo = orderInfo.StoreOrderInfo2;
#endif
#if UNITY_EDITOR
        Debug.LogFormat("充值: {0}-{1}-{2} - {3}", title, money, cpInfo, storeOrderInfo);
        return;
@@ -1401,7 +1406,7 @@
        SendMessageToSDK(m_Json);
    }
    #endregion
#endregion
    #region 插件相关