成长礼包提交

dev_chengFeng
jiaoyangna 2021-04-02 11:41:50 +08:00
parent c9a3a40acf
commit 57604c4c76
3 changed files with 9 additions and 0 deletions

View File

@ -222,6 +222,8 @@ end
--界面关闭时调用(用于子类重写)
function GrowthGiftPage:OnClose()
VipManager.SetGrowthPackagePointStatus()--成长礼包
CheckRedPointStatus(RedPointType.GrowthPackage)
self.gameObject:SetActive(false)
end
--界面销毁时调用(用于子类重写)

View File

@ -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

View File

@ -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