From b000e84564d9eef8272970a45bdad7c696f57785 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Tue, 27 Apr 2021 14:34:29 +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=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=8F=AF=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=20=E4=BF=AE=E6=94=B9=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Operating/MonthRewardPreviewPopup.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/MonthRewardPreviewPopup.lua b/Assets/ManagedResources/~Lua/Modules/Operating/MonthRewardPreviewPopup.lua index 978c69b4c4..b809c1adb2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/MonthRewardPreviewPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/MonthRewardPreviewPopup.lua @@ -31,8 +31,13 @@ end function MonthRewardPreviewPopup:OnOpen(type, goodType) local data = OperatingManager.GetPanelShowReward(type, true,false) - local getDays = OperatingManager.GetRewardDay(goodType) - -- Log("领取天数" .. getDays) + local getDays = 0 + local canBuyNum = OperatingManager.GetLeftBuyTime(goodType, type) + if canBuyNum and canBuyNum <= 0 then + getDays = OperatingManager.GetRewardDay(goodType) + else + getDays = 0 + end for i = 1, #data do if not this.rewardList[i] then this.rewardList[i] = {}