diff --git a/lua/app/userdata/dungeon/dungeon_armor_entity.lua b/lua/app/userdata/dungeon/dungeon_armor_entity.lua index 82a5f306..0697e22e 100644 --- a/lua/app/userdata/dungeon/dungeon_armor_entity.lua +++ b/lua/app/userdata/dungeon/dungeon_armor_entity.lua @@ -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 -- 获取基金阶段标题