基金购买状态fix

This commit is contained in:
Fang 2023-07-31 09:45:28 +08:00
parent 96c9cf8c18
commit 23d9fec3ac

View File

@ -410,25 +410,23 @@ end
-- 基金阶段是否已购买
function DungeonArmorEntity:isBoughtFundStage(stage)
local bought = DataManager.ShopData:getActGiftMapByType(PayManager.PURCHARSE_TYPE.ACT_GIFT)
if not stage then
return false
end
if not self:getFundStageGiftId(stage) then
return
local giftId = self:getFundStageGiftId(stage)
if not giftId then
return false
end
local count = DataManager.ShopData:getGiftBoughtNum(PayManager.PURCHARSE_TYPE.ACT_GIFT, giftId)
if EDITOR_MODE then
Logger.logHighlight("支线基金购买状态/"..self:getFundStageGiftId(stage))
Logger.printTable(bought)
end
if bought then
return bought[self:getFundStageGiftId(stage)]
Logger.logHighlight("支线基金购买状态:"..giftId.."/"..count)
end
return false
return count > 0
end
-- 获取基金阶段标题