yyl
2025-10-31 39001a600fcae2bcf27c225df8752d75fb92fef4
Main/System/Invest/InvestModel.cs
@@ -6,9 +6,9 @@
public class InvestModel : GameSystemManager<InvestModel>
{
    public ILOpenServerActivityProxy activity;
    // public ILOpenServerActivityProxy activity;
    public const int FuncID = 119;
    public const int FuncID = 25;
    //投资对应奖励
@@ -32,7 +32,7 @@
    public event Action onSelectUpdate;
    public event Action onInvestUpdate;
    public event Action<int> onInvestUpdate;
    public const int redpointID = 20931;
    public Redpoint redpoint = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, redpointID);
@@ -116,7 +116,7 @@
                items.Add(new Item()
                {
                    id = itemArray[j][0],
                    countEx = (ulong)itemArray[j][1],
                    countEx = itemArray[j][1],
                    bind = itemArray[j][2],
                });
            }
@@ -150,9 +150,9 @@
    }
    //获得单投资的总收益
    public ulong GetTotalIncome(int type)
    public long GetTotalIncome(int type)
    {
        ulong income = 0;
        long income = 0;
        if (m_InvestItems.ContainsKey(type))
        {
            var keyList = m_InvestItems[type].Keys.ToList();
@@ -250,7 +250,7 @@
    {
        if (id == FuncID)
        {
            activity.StateUpdate(id);
            // activity.StateUpdate(id);
            UpdateRedpoint();
        }
@@ -305,7 +305,7 @@
        if (onInvestUpdate != null)
        {
            onInvestUpdate();
            onInvestUpdate(package.InvestType);
        }
    }