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