lcy
2026-01-09 c0c81cdc051b663dfdcacfa3932167394d4b2a3d
251 每日特惠-客户端

1.每日礼包,每周礼包支持排序 C.充值 新增一列SortNum
3个文件已修改
19 ■■■■ 已修改文件
Main/Config/Configs/CTGConfig.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/DailySpecials/DailySpecialsDayGiftWin.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/DailySpecials/DailySpecialsWeekGiftWin.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/Configs/CTGConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年11月9日
//    [  Date ]:           Friday, January 9, 2026
//--------------------------------------------------------
using System.Collections.Generic;
@@ -31,6 +31,7 @@
    public int[][] SelectItemInfo;
    public string Icon;
    public int PayType;
    public int SortNum;
    public int Percentage;
    public override int LoadKey(string _key)
@@ -73,7 +74,9 @@
            int.TryParse(tables[14],out PayType); 
            int.TryParse(tables[15],out Percentage);
            int.TryParse(tables[15],out SortNum);
            int.TryParse(tables[16],out Percentage);
        }
        catch (Exception exception)
        {
Main/System/DailySpecials/DailySpecialsDayGiftWin.cs
@@ -45,7 +45,11 @@
        }
        if (!ctgIDList.IsNullOrEmpty())
        {
            ctgIDList = ctgIDList.OrderBy(ctgId => { return manager.IsDayGiftBuy(ctgId); }).ThenBy(ctgId => ctgId).ToList();
            ctgIDList = ctgIDList
                .OrderBy(ctgId => manager.IsDayGiftBuy(ctgId))
                .ThenBy(ctgId => CTGConfig.HasKey(ctgId) ? CTGConfig.Get(ctgId).SortNum : int.MaxValue)
                .ThenBy(ctgId => ctgId)
                .ToList();
            scroller.Refresh();
            for (int i = 0; i < ctgIDList.Count; i++)
            {
Main/System/DailySpecials/DailySpecialsWeekGiftWin.cs
@@ -43,7 +43,11 @@
        }
        if (!ctgIDList.IsNullOrEmpty())
        {
            ctgIDList = ctgIDList.OrderBy(ctgId => { return manager.IsWeekGiftBuy(ctgId); }).ThenBy(ctgId => ctgId).ToList();
            ctgIDList = ctgIDList
                .OrderBy(ctgId => manager.IsWeekGiftBuy(ctgId))
                .ThenBy(ctgId => CTGConfig.HasKey(ctgId) ? CTGConfig.Get(ctgId).SortNum : int.MaxValue)
                .ThenBy(ctgId => ctgId)
                .ToList();
            scroller.Refresh();
            for (int i = 0; i < ctgIDList.Count; i++)
            {