【连购好礼】购买限购礼包,次数不减,显示问题

dev_chengFeng
ZhangBiao 2021-12-06 16:38:51 +08:00
parent 0d11371d87
commit 19294fab2d
2 changed files with 3 additions and 2 deletions

View File

@ -187,7 +187,7 @@ function ContinuePackagePanel:ShowSingleHero(go,data,index)
PayManager.Pay(data.otherData.GoodId, function(id)
FirstRechargeManager.RefreshAccumRechargeValue(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)
end)
elseif data.otherData.GoodType == 2 then--商品

View File

@ -336,13 +336,14 @@ local TypeUpdateFunc = {
tempData.otherData.Name = rechargeConfig[configData[j].GoodId].Name
tempData.otherData.Reward = rechargeConfig[configData[j].GoodId].RewardShow
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
tempData.otherData.Name = goodsConfig[configData[j].GoodId].GoodsName
tempData.otherData.Reward = goodsConfig[configData[j].GoodId].Goods
tempData.otherData.Price = goodsConfig[configData[j].GoodId].Price
tempData.progress = goodsConfig[configData[j].GoodId].Limit - curData.rewards[i].progress
end
-- LogPink("missionId:"..tostring(tempData.missionId).." progress:"..tostring(tempData.progress))
if not tempDataList[configData[j].Type] then
tempDataList[configData[j].Type] = {}
end