| | |
| | | }
|
| | | if (!m_RechargeGainItemDict.ContainsKey(configs[i].CTGID))
|
| | | {
|
| | | var ctg = CTGConfig.Get(configs[i].CTGID);
|
| | | if (ctg == null)
|
| | | Debug.LogError("错误的 充值商品ctgid = " + configs[i].CTGID);
|
| | | var _itemArray = LitJson.JsonMapper.ToObject<int[][]>(ctg.GainItemList);
|
| | | if (_itemArray != null && _itemArray.Length > 0)
|
| | | #if UNITY_EDITOR
|
| | | try
|
| | | {
|
| | | var _itemList = new List<Item>();
|
| | | m_RechargeGainItemDict.Add(configs[i].CTGID, _itemList);
|
| | | for (int k = 0; k < _itemArray.Length; k++)
|
| | | #endif
|
| | | var ctg = CTGConfig.Get(configs[i].CTGID);
|
| | | var _itemArray = LitJson.JsonMapper.ToObject<int[][]>(ctg.GainItemList);
|
| | | if (_itemArray != null && _itemArray.Length > 0)
|
| | | {
|
| | | Item _item = new Item(_itemArray[k][0], _itemArray[k][1]);
|
| | | _itemList.Add(_item);
|
| | | 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], _itemArray[k][1]);
|
| | | _itemList.Add(_item);
|
| | | }
|
| | | }
|
| | | #if UNITY_EDITOR
|
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | Debug.LogError("错误的 充值商品ctgid = " + configs[i].CTGID + e);
|
| | | }
|
| | | #endif
|
| | | }
|
| | | }
|
| | | var _funcConfig = FuncConfigConfig.Get("ChargeDelayTime");
|