【红点】成长礼包红点不显示修复

dev_chengFeng
gaoxin 2021-03-18 15:02:13 +08:00
parent bc1f1bb00e
commit 115e4aaa18
1 changed files with 12 additions and 12 deletions

View File

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