From 57604c4c7616151b5b7faaceb1d87219001e4315 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 2 Apr 2021 11:41:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E9=95=BF=E7=A4=BC=E5=8C=85=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Operating/GrowthGiftPage.lua | 2 ++ .../~Lua/Modules/Recharge/View/EveryDayGift.lua | 5 +++++ Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua | 2 ++ 3 files changed, 9 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/GrowthGiftPage.lua b/Assets/ManagedResources/~Lua/Modules/Operating/GrowthGiftPage.lua index 1ae24e175a..ef324d4c4d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/GrowthGiftPage.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/GrowthGiftPage.lua @@ -222,6 +222,8 @@ end --界面关闭时调用(用于子类重写) function GrowthGiftPage:OnClose() + VipManager.SetGrowthPackagePointStatus()--成长礼包 + CheckRedPointStatus(RedPointType.GrowthPackage) self.gameObject:SetActive(false) end --界面销毁时调用(用于子类重写) diff --git a/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua b/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua index cdd63eabd4..df492926f9 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua b/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua index 914430b21b..c746a0e4a8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Vip/VipManager.lua @@ -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