成长礼包提交
parent
c9a3a40acf
commit
57604c4c76
|
@ -222,6 +222,8 @@ end
|
|||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function GrowthGiftPage:OnClose()
|
||||
VipManager.SetGrowthPackagePointStatus()--成长礼包
|
||||
CheckRedPointStatus(RedPointType.GrowthPackage)
|
||||
self.gameObject:SetActive(false)
|
||||
end
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
|
@ -121,6 +121,11 @@ function EveryDayGift:OnShow(_sortingOrder)
|
|||
else
|
||||
self.titleTip.gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
if self.actConfig.Id == 63 then
|
||||
VipManager.SetGrowthPackagePointStatus()
|
||||
CheckRedPointStatus(RedPointType.GrowthPackage)
|
||||
end
|
||||
self:RefreshData(true)
|
||||
end
|
||||
|
||||
|
|
|
@ -423,6 +423,7 @@ function this.CheckGrowthPackagePointStatus()--成长礼包
|
|||
return true
|
||||
end
|
||||
local redointTime = PlayerPrefs.GetInt(PlayerManager.uid.."czlb"..shopData[i].id)
|
||||
LogGreen("redointTimeL:"..redointTime)
|
||||
if redointTime == 0 then
|
||||
return true
|
||||
end
|
||||
|
@ -439,6 +440,7 @@ function this.SetGrowthPackagePointStatus()--成长礼包
|
|||
local boughtNum = ShopManager.GetShopItemHadBuyTimes(SHOP_TYPE.VIP_GIFT, shopData[i].id)
|
||||
if rechargeNum >= shopItemConfig[shopData[i].id].BuyRule[2] and boughtNum == 0 then
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."czlb"..shopData[i].id, 1)
|
||||
LogGreen("11111:")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue