支线基金跨阶段fix

This commit is contained in:
Fang 2023-07-25 23:10:35 +08:00
parent 5d8cb4bfff
commit 0448dd5fa2
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,6 @@ function ArmorFundUI:onLoadRootComplete()
self.txBuy = uiMap["armor_fund_ui.content.buy_node.btn_buy.tx_buy"]
self.armorEntity = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR)
self.txTitle:setText(self.armorEntity:getFundStageTitle())
self.btnBuy:addClickListener(function()
PayManager:purchasePackage(self.curGiftId, PayManager.PURCHARSE_TYPE.ACT_GIFT)
@ -58,6 +57,7 @@ end
function ArmorFundUI:onRefresh()
self.curStage = self.armorEntity:getCurFundStage()
self.curGiftId = self.armorEntity:getFundStageGiftId(self.curStage)
self.txTitle:setText(self.armorEntity:getFundStageTitle())
self:showRewardList()
self:refreshBuy()
end

View File

@ -392,7 +392,7 @@ end
-- 获取当前基金奖励所属阶段
function DungeonArmorEntity:getCurFundStage()
for id, data in ipairs(ConfigManager:getConfig("dungeon_armor_fund")) do
if id ~= FUND_AD_REWARD_ID and not self:isGotFundReward() then
if id ~= FUND_AD_REWARD_ID and not self:isGotFundReward(id) then
return data.stage
end
end