Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c

dev_chengFeng
ZhangBiao 2021-04-27 14:34:59 +08:00
commit b18596b8b0
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] = {}