【超值基金】判断是否可购买 修改 2
parent
c73f7b4fbc
commit
b000e84564
|
@ -31,8 +31,13 @@ end
|
||||||
|
|
||||||
function MonthRewardPreviewPopup:OnOpen(type, goodType)
|
function MonthRewardPreviewPopup:OnOpen(type, goodType)
|
||||||
local data = OperatingManager.GetPanelShowReward(type, true,false)
|
local data = OperatingManager.GetPanelShowReward(type, true,false)
|
||||||
local getDays = OperatingManager.GetRewardDay(goodType)
|
local getDays = 0
|
||||||
-- Log("领取天数" .. getDays)
|
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
|
for i = 1, #data do
|
||||||
if not this.rewardList[i] then
|
if not this.rewardList[i] then
|
||||||
this.rewardList[i] = {}
|
this.rewardList[i] = {}
|
||||||
|
|
Loading…
Reference in New Issue