| | |
| | | using System.Linq;
|
| | |
|
| | |
|
| | | public class RechargeManager : GameSystemManager<RechargeManager>
|
| | | public partial class RechargeManager : GameSystemManager<RechargeManager>
|
| | | {
|
| | | private Dictionary<string, List<int>> m_CTGConfigDict = new Dictionary<string, List<int>>();
|
| | | public List<int> voucherCTGList = new List<int>();
|
| | |
| | |
|
| | | #region 配置
|
| | | private static string[] lineSplit = new string[] { "</r>" };
|
| | | private int m_CTGDelayTime = 1; // 充值的公共间隔,见配置ChargeDelayTime
|
| | | private int m_CTGLimitDelayTime = 1; // 限购商品的充值间隔,见配置ChargeDelayTime
|
| | | private int m_CTGDelayTime = 0; // 充值的公共间隔,见配置ChargeDelayTime
|
| | | private int m_CTGLimitDelayTime = 0; // 限购商品的充值间隔,见配置ChargeDelayTime
|
| | |
|
| | | //多倍图片
|
| | | public Dictionary<int, string> MultiRechageImageDict = new Dictionary<int, string>();
|
| | |
| | | {
|
| | | #endif
|
| | | var ctg = CTGConfig.Get(configs[i].CTGID);
|
| | | var _itemArray = LitJson.JsonMapper.ToObject<int[][]>(ctg.GainItemList);
|
| | | var _itemArray = ctg.GainItemList;
|
| | | if (_itemArray != null && _itemArray.Length > 0)
|
| | | {
|
| | | var _itemList = new List<Item>();
|
| | | m_RechargeGainItemDict.Add(configs[i].CTGID, _itemList);
|
| | | for (int k = 0; k < _itemArray.Length; k++)
|
| | | {
|
| | | Item _item = new Item(_itemArray[k][0], (ulong)_itemArray[k][1]);
|
| | | Item _item = new Item(_itemArray[k][0], _itemArray[k][1]);
|
| | | _itemList.Add(_item);
|
| | | }
|
| | | }
|
| | |
| | | for (int i = 0; i < _itemJson[jobstr].Count; i++)
|
| | | {
|
| | | m_FirstChargeItemDict[day][job].Add(new Item(int.Parse(_itemJson[jobstr][i][0].ToString()),
|
| | | ulong.Parse(_itemJson[jobstr][i][1].ToString())));
|
| | | long.Parse(_itemJson[jobstr][i][1].ToString())));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var _itemCommon = JsonMapper.ToObject<int[][]>(config.CommItemList);
|
| | | for (int i = 0; i < _itemCommon.Length; i++)
|
| | | {
|
| | | m_FirstChargeCommonItemDict[day].Add(new Item(_itemCommon[i][0], (ulong)_itemCommon[i][1]));
|
| | | m_FirstChargeCommonItemDict[day].Add(new Item(_itemCommon[i][0], _itemCommon[i][1]));
|
| | | }
|
| | |
|
| | |
|
| | |
| | | }
|
| | |
|
| | |
|
| | | public struct RechargeCount
|
| | | {
|
| | | public int todayCount;
|
| | | public int totalCount;
|
| | | public int weekPayCount;
|
| | | public int monthPayCount;
|
| | | public int selectItemValue;
|
| | |
|
| | | }
|
| | |
|
| | | public int FirstGoldServerDay = 0; //0表示未充值,首充时为开服第几天(openday+1)
|
| | |
|
| | |
| | | return 0;
|
| | | }
|
| | |
|
| | | public void UpdateFirstChargeReward(HAA02_tagMCFirstGoldInfo package)
|
| | | {
|
| | | FirstGoldServerDay = package.FirstGoldServerDay;
|
| | | firstChargeRewardGet = package.FirstGoldRewardState;
|
| | | UpdateFirstRechargeRedpoint();
|
| | | UpdateRedpoint();
|
| | | }
|
| | | // public void UpdateFirstChargeReward(HAA02_tagMCFirstGoldInfo package)
|
| | | // {
|
| | | // FirstGoldServerDay = package.FirstGoldServerDay;
|
| | | // firstChargeRewardGet = package.FirstGoldRewardState;
|
| | | // UpdateFirstRechargeRedpoint();
|
| | | // UpdateRedpoint();
|
| | | // }
|
| | |
|
| | | private void UpdateFirstRechargeRedpoint()
|
| | | {
|
| | |
| | | }
|
| | |
|
| | |
|
| | | public struct RechargeCount
|
| | | {
|
| | | public int todayCount;
|
| | | public int totalCount;
|
| | | public int weekPayCount;
|
| | | public int monthPayCount;
|
| | | public int selectItemValue;
|
| | |
|
| | | }
|