From ca9594fefcfa25f5acadcaab53b8c363fb53dbcf Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Mon, 26 Apr 2021 20:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B6=85=E5=80=BC=E5=9F=BA=E9=87=91?= =?UTF-8?q?=E3=80=91=E6=98=AF=E5=90=A6=E5=8F=AF=E8=B4=AD=E4=B9=B0=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Operating/UppperMonthCard.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/UppperMonthCard.lua b/Assets/ManagedResources/~Lua/Modules/Operating/UppperMonthCard.lua index 930a2a583b..1125c1d405 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/UppperMonthCard.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/UppperMonthCard.lua @@ -170,7 +170,9 @@ end --- 根据是否购买了显示信息 function UpperMonthCard:SetBuyState() local isActive = VipManager.GetMonthCardOpenState() - local isBought = OperatingManager.IsBaseBuy(self.chargerBaseType) + -- local isBought = OperatingManager.IsBaseBuy(self.chargerBaseType) + local canBuyNum = OperatingManager.GetLeftBuyTime(self.chargerBaseType, self.baseType) + local isBought = canBuyNum and canBuyNum <= 0 self.boughtPanel:SetActive(isBought) self.buyPanel:SetActive(not isBought) Util.SetGray(self.btnBuy, not isActive)