fix bug
This commit is contained in:
parent
a5542778a7
commit
8f556e6d65
@ -216,6 +216,9 @@ function SummonRewardUI:onRefresh()
|
|||||||
end
|
end
|
||||||
self.tranBg:addClickListener(function()
|
self.tranBg:addClickListener(function()
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
|
if self.closeCallBack then
|
||||||
|
self:closeCallBack()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
self.tranBg:setClickAnimation(false)
|
self.tranBg:setClickAnimation(false)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@ -186,6 +186,9 @@ function PrivilegeCardData:getIsMonthlyCardActive()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function PrivilegeCardData:getIsCardActive(cardId)
|
function PrivilegeCardData:getIsCardActive(cardId)
|
||||||
|
if not self.cardData then
|
||||||
|
return false
|
||||||
|
end
|
||||||
if cardId == GConst.ShopConst.PRIVILEGE_CARD_ID.MONTHLY_CARD then
|
if cardId == GConst.ShopConst.PRIVILEGE_CARD_ID.MONTHLY_CARD then
|
||||||
local remainTime = self:getCardRemainTime(cardId)
|
local remainTime = self:getCardRemainTime(cardId)
|
||||||
return remainTime > 0
|
return remainTime > 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user