| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | |
| | | fullSeverBuyInfoDict.Clear();
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | |
| | | get
|
| | | {
|
| | | var operation = GetOperationFlashRushToBuy();
|
| | | if(operation != null)
|
| | | if (operation != null)
|
| | | {
|
| | | return operation.SatisfyOpenCondition();
|
| | | }
|
| | |
| | | {
|
| | | if (saleItems[k].shopGuid == saleItemInfo.GoodsMark)
|
| | | {
|
| | |
|
| | | if(saleItems[k].isAppointment != saleItemInfo.State)
|
| | | {
|
| | | saleItems[k].isAppointment = saleItemInfo.State;
|
| | | if(UpdateAppointmentEvent != null)
|
| | | if(UpdateAppointmentEvent != null && appointmentInfo.IsAll != 1)
|
| | | {
|
| | | UpdateAppointmentEvent((int)saleItemInfo.GoodsMark);
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | }
|
| | | /// <summary>
|
| | | /// Value1 商品ID Value2 全服购买次数
|
| | | /// </summary>
|
| | | /// <returns></returns>
|
| | | public List<GameRecInfo> GetFullServerInfo()
|
| | |
|
| | | private Dictionary<int, int> fullSeverBuyInfoDict = new Dictionary<int, int>();
|
| | | public void UpdateFullSeverBuyInfo(HA906_tagGCStoreServerBuyCntInfo buyCntInfo)
|
| | | {
|
| | | return battleModel.GetBatterInfoListByType(8);
|
| | | for(int i = 0; i < buyCntInfo.Count; i++)
|
| | | {
|
| | | var info = buyCntInfo.InfoList[i];
|
| | | if(!fullSeverBuyInfoDict.ContainsKey((int)info.GoodsID))
|
| | | {
|
| | | fullSeverBuyInfoDict.Add((int)info.GoodsID,(int)info.BuyCnt);
|
| | | }
|
| | | else
|
| | | {
|
| | | fullSeverBuyInfoDict[(int)info.GoodsID] = (int)info.BuyCnt;
|
| | | }
|
| | | }
|
| | | }
|
| | | public int GetFullServerBuyCntById(int goodsId)
|
| | | {
|
| | | int buyCnt = 0;
|
| | | fullSeverBuyInfoDict.TryGetValue(goodsId,out buyCnt);
|
| | | return buyCnt;
|
| | | }
|
| | |
|
| | | /// <summary>
|