【超值基金】判断是否可购买 修改 2

dev_chengFeng
zhangqiang 2021-04-27 14:34:29 +08:00
parent c73f7b4fbc
commit b000e84564
1 changed files with 7 additions and 2 deletions

View File

@ -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] = {}