【连购好礼】购买限购礼包,次数不减,显示问题
parent
0d11371d87
commit
19294fab2d
|
@ -187,7 +187,7 @@ function ContinuePackagePanel:ShowSingleHero(go,data,index)
|
||||||
PayManager.Pay(data.otherData.GoodId, function(id)
|
PayManager.Pay(data.otherData.GoodId, function(id)
|
||||||
FirstRechargeManager.RefreshAccumRechargeValue(data.otherData.GoodId)
|
FirstRechargeManager.RefreshAccumRechargeValue(data.otherData.GoodId)
|
||||||
OperatingManager.SetHadBuyGoodsId({data.otherData.GoodId})
|
OperatingManager.SetHadBuyGoodsId({data.otherData.GoodId})
|
||||||
OperatingManager.RemoveItemInfoByType(GoodsTypeDef.DirectPurchaseGift, data.otherData.GoodId)
|
-- OperatingManager.RemoveItemInfoByType(GoodsTypeDef.DirectPurchaseGift, data.otherData.GoodId)
|
||||||
self:Refresh(false,false)
|
self:Refresh(false,false)
|
||||||
end)
|
end)
|
||||||
elseif data.otherData.GoodType == 2 then--商品
|
elseif data.otherData.GoodType == 2 then--商品
|
||||||
|
|
|
@ -336,13 +336,14 @@ local TypeUpdateFunc = {
|
||||||
tempData.otherData.Name = rechargeConfig[configData[j].GoodId].Name
|
tempData.otherData.Name = rechargeConfig[configData[j].GoodId].Name
|
||||||
tempData.otherData.Reward = rechargeConfig[configData[j].GoodId].RewardShow
|
tempData.otherData.Reward = rechargeConfig[configData[j].GoodId].RewardShow
|
||||||
tempData.otherData.Price = rechargeConfig[configData[j].GoodId].Price
|
tempData.otherData.Price = rechargeConfig[configData[j].GoodId].Price
|
||||||
tempData.progress = OperatingManager.GetLeftBuyTime(5,configData[j].GoodId)
|
tempData.progress = rechargeConfig[configData[j].GoodId].Limit - OperatingManager.GetGoodsBuyTime(5,configData[j].GoodId)
|
||||||
elseif configData[j].GoodType == 2 then
|
elseif configData[j].GoodType == 2 then
|
||||||
tempData.otherData.Name = goodsConfig[configData[j].GoodId].GoodsName
|
tempData.otherData.Name = goodsConfig[configData[j].GoodId].GoodsName
|
||||||
tempData.otherData.Reward = goodsConfig[configData[j].GoodId].Goods
|
tempData.otherData.Reward = goodsConfig[configData[j].GoodId].Goods
|
||||||
tempData.otherData.Price = goodsConfig[configData[j].GoodId].Price
|
tempData.otherData.Price = goodsConfig[configData[j].GoodId].Price
|
||||||
tempData.progress = goodsConfig[configData[j].GoodId].Limit - curData.rewards[i].progress
|
tempData.progress = goodsConfig[configData[j].GoodId].Limit - curData.rewards[i].progress
|
||||||
end
|
end
|
||||||
|
-- LogPink("missionId:"..tostring(tempData.missionId).." progress:"..tostring(tempData.progress))
|
||||||
if not tempDataList[configData[j].Type] then
|
if not tempDataList[configData[j].Type] then
|
||||||
tempDataList[configData[j].Type] = {}
|
tempDataList[configData[j].Type] = {}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue