yyl
2025-12-04 5f728e2633e8e20ebafc4e534fe7e7362362c839
Main/System/Recharge/RechargeManager.cs
@@ -7,7 +7,7 @@
using System.Linq;
public class RechargeManager : GameSystemManager<RechargeManager>
public partial class RechargeManager : GameSystemManager<RechargeManager>
{
    private Dictionary<string, List<int>> m_CTGConfigDict = new Dictionary<string, List<int>>();
    public List<int> voucherCTGList = new List<int>();
@@ -107,8 +107,8 @@
    #region 配置
    private static string[] lineSplit = new string[] { "</r>" };
    private int m_CTGDelayTime = 1;   // 充值的公共间隔,见配置ChargeDelayTime
    private int m_CTGLimitDelayTime = 1; // 限购商品的充值间隔,见配置ChargeDelayTime
    private int m_CTGDelayTime = 0;   // 充值的公共间隔,见配置ChargeDelayTime
    private int m_CTGLimitDelayTime = 0; // 限购商品的充值间隔,见配置ChargeDelayTime
    //多倍图片
    public Dictionary<int, string> MultiRechageImageDict = new Dictionary<int, string>();
@@ -197,7 +197,7 @@
                {
#endif
                    var ctg = CTGConfig.Get(configs[i].CTGID);
                    var _itemArray = LitJson.JsonMapper.ToObject<int[][]>(ctg.GainItemList);
                    var _itemArray = ctg.GainItemList;
                    if (_itemArray != null && _itemArray.Length > 0)
                    {
                        var _itemList = new List<Item>();
@@ -310,8 +310,6 @@
    private DateTime beforeCTGTime = DateTime.Now;
    private Redpoint rechargeRedpoint = new Redpoint(21);
    public Redpoint firstRechargeRedpoint = new Redpoint(210000);//首充领取红点
    public Redpoint rechargeFuncRedpoint = new Redpoint(21, 2101);
    public Redpoint rechargeGiftRedpoint = new Redpoint(2101, 210101);//18元礼包
    public bool TryGetOrderInfo(int _id, out OrderInfoConfig config)
    {
@@ -702,24 +700,24 @@
    private void UpdateRedpoint()
    {
        if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Recharge))
        {
            return;
        }
        if (FirstGoldServerDay <= 0 || !IsFirstChargeRewardGetByDay(1))
        {
            return;
        }
        var list = GetCTGConfigs(VersionConfig.Get().appId);
        var config = CTGConfig.Get(list[0]);
        if (m_RechargeCountDict.ContainsKey(config.RecordID))
        {
            if (config.DailyBuyCount > 0 &&
                config.DailyBuyCount <= m_RechargeCountDict[config.RecordID].todayCount)
            {
                return;
            }
        }
        // if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Recharge))
        // {
        //     return;
        // }
        // if (FirstGoldServerDay <= 0 || !IsFirstChargeRewardGetByDay(1))
        // {
        //     return;
        // }
        // var list = GetCTGConfigs(VersionConfig.Get().appId);
        // var config = CTGConfig.Get(list[0]);
        // if (m_RechargeCountDict.ContainsKey(config.RecordID))
        // {
        //     if (config.DailyBuyCount > 0 &&
        //         config.DailyBuyCount <= m_RechargeCountDict[config.RecordID].todayCount)
        //     {
        //         return;
        //     }
        // }
    }