少年修仙传客户端代码仓库
hch
2024-11-13 e8193511deec01221ac08d1000bd719929ae28b2
0312 周月礼包排序,珍宝阁砍价后刷新按钮
2个文件已修改
28 ■■■■■ 已修改文件
System/FairyAu/FamilyZBGWin.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Vip/DayPackageModel.cs 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FairyAu/FamilyZBGWin.cs
@@ -198,6 +198,8 @@
            { 
                scroller.m_Scorller.RefreshActiveCellViews();
            }
            DisplayBtnState();
        }
        void OnCut()
System/Vip/DayPackageModel.cs
@@ -212,6 +212,32 @@
                monthStoreListSort.Add(ctgConfig.RecordID);
            }
        }
        monthStoreListSort.Sort(SortMonthList);
        weekStoreListSort.Sort(SortWeekList);
    }
    int SortMonthList(int a, int b)
    {
        int ida = a > 100000000 ? 0 : 1;
        int idb = b > 100000000 ? 0 : 1;
        if (ida != idb)
            return ida.CompareTo(idb);
        return m_MonthRechargeDict[a].money.CompareTo(m_MonthRechargeDict[b].money);
    }
    int SortWeekList(int a, int b)
    {
        int ida = a > 100000000 ? 0 : 1;
        int idb = b > 100000000 ? 0 : 1;
        if (ida != idb)
            return ida.CompareTo(idb);
        return m_WeekRechargeDict[a].money.CompareTo(m_WeekRechargeDict[b].money);
    }