This commit is contained in:
puxuan 2025-10-20 20:36:58 +08:00
parent a5542778a7
commit 8f556e6d65
2 changed files with 6 additions and 0 deletions

View File

@ -216,6 +216,9 @@ function SummonRewardUI:onRefresh()
end
self.tranBg:addClickListener(function()
self:closeUI()
if self.closeCallBack then
self:closeCallBack()
end
end)
self.tranBg:setClickAnimation(false)
end)

View File

@ -186,6 +186,9 @@ function PrivilegeCardData:getIsMonthlyCardActive()
end
function PrivilegeCardData:getIsCardActive(cardId)
if not self.cardData then
return false
end
if cardId == GConst.ShopConst.PRIVILEGE_CARD_ID.MONTHLY_CARD then
local remainTime = self:getCardRemainTime(cardId)
return remainTime > 0