using System.Collections.Generic; using UnityEngine.UI; using System.Linq; using LitJson; using System; public partial class RechargeManager : GameSystemManager { public int selectTabIndex = 2; //0 代金券 1 元宝 2 现金礼券(默认) public List GetCTGIDListByType(int type) { var list = new List(); foreach (var config in CTGConfig.GetValues()) { if (config.PayType == type) { list.Add(config.RecordID); } } return list; } }