【超值基金】是否可购买判断修改

dev_chengFeng
zhangqiang 2021-04-26 20:08:32 +08:00
parent 24937470ad
commit ca9594fefc
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ end
--- 根据是否购买了显示信息
function UpperMonthCard:SetBuyState()
local isActive = VipManager.GetMonthCardOpenState()
local isBought = OperatingManager.IsBaseBuy(self.chargerBaseType)
-- local isBought = OperatingManager.IsBaseBuy(self.chargerBaseType)
local canBuyNum = OperatingManager.GetLeftBuyTime(self.chargerBaseType, self.baseType)
local isBought = canBuyNum and canBuyNum <= 0
self.boughtPanel:SetActive(isBought)
self.buyPanel:SetActive(not isBought)
Util.SetGray(self.btnBuy, not isActive)