【红点】成长礼包红点不显示修复
parent
bc1f1bb00e
commit
115e4aaa18
|
@ -412,18 +412,18 @@ function this.CheckNewVipRP()
|
|||
end
|
||||
|
||||
function this.CheckGrowthPackagePointStatus()--成长礼包
|
||||
-- local redointTime =PlayerPrefs.GetInt(PlayerManager.uid.."czlb", 0)
|
||||
-- local rechargeNum= VipManager.GetChargedNum()--已经充值的金额
|
||||
-- local shopData = ShopManager.GetShopDataByType(SHOP_TYPE.VIP_GIFT).storeItem
|
||||
-- local shopItemConfig = ConfigManager.GetConfig(ConfigName.StoreConfig)
|
||||
-- for i = 1, #shopData do
|
||||
-- local boughtNum = ShopManager.GetShopItemHadBuyTimes(SHOP_TYPE.VIP_GIFT, shopData[i].id)
|
||||
-- if rechargeNum >= shopItemConfig[shopData[i].id].BuyRule[2] and boughtNum == 0 then
|
||||
-- if redointTime == 0 then
|
||||
-- return true
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
local redointTime =PlayerPrefs.GetInt(PlayerManager.uid.."czlb", 0)
|
||||
local rechargeNum= VipManager.GetChargedNum()--已经充值的金额
|
||||
local shopData = ShopManager.GetShopDataByType(SHOP_TYPE.VIP_GIFT).storeItem
|
||||
local shopItemConfig = ConfigManager.GetConfig(ConfigName.StoreConfig)
|
||||
for i = 1, #shopData do
|
||||
local boughtNum = ShopManager.GetShopItemHadBuyTimes(SHOP_TYPE.VIP_GIFT, shopData[i].id)
|
||||
if rechargeNum >= shopItemConfig[shopData[i].id].BuyRule[2] and boughtNum == 0 then
|
||||
if redointTime == 0 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue