/// <summary> /// 获取所有产品配置信息 /// </summary> /// <returns></returns> private static List <ProductItem> GetProducts() { List <ProductItem> list = new List <ProductItem>(); //文件读取方式己经取消 list = ConfigJsonHelper.GetTypes <ProductItem>("products"); return(list); }
/// <summary> /// 系统定义的平台类型 /// </summary> /// <returns></returns> public static List <TypeItem> GetPlatform() { if (platform_list.Count == 0) { platform_list = ConfigJsonHelper.GetTypes("PlatformType"); } //list.Add(new TypeItem() { Name = "不限", Id = 0 }); //list.Add(new TypeItem() { Name = "APP平台", Id = 1 }); //list.Add(new TypeItem() { Name = "微信平台", Id = 2 }); return(platform_list); }
/// <summary> /// 获取充值类型 /// </summary> /// <returns></returns> public List <TypeItem> GetMoneyTypes() { return(ConfigJsonHelper.GetTypes("RechargeType")); }