diff --git a/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua b/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua index 4e4429c8d0..87c05b23da 100644 --- a/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua @@ -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