基金购买状态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) function DungeonArmorEntity:isBoughtFundStage(stage)
local bought = DataManager.ShopData:getActGiftMapByType(PayManager.PURCHARSE_TYPE.ACT_GIFT)
if not stage then if not stage then
return false return false
end end
if not self:getFundStageGiftId(stage) then local giftId = self:getFundStageGiftId(stage)
return
if not giftId then
return false
end end
local count = DataManager.ShopData:getGiftBoughtNum(PayManager.PURCHARSE_TYPE.ACT_GIFT, giftId)
if EDITOR_MODE then if EDITOR_MODE then
Logger.logHighlight("支线基金购买状态/"..self:getFundStageGiftId(stage)) Logger.logHighlight("支线基金购买状态:"..giftId.."/"..count)
Logger.printTable(bought)
end
if bought then
return bought[self:getFundStageGiftId(stage)]
end end
return false return count > 0
end end
-- 获取基金阶段标题 -- 获取基金阶段标题