【连购礼包】每日特惠修改
parent
011c8d7f5d
commit
7a43c51a48
|
@ -323,6 +323,7 @@ local TypeUpdateFunc = {
|
|||
for i = 1, #curData.rewards do
|
||||
for j = 1, #configData do
|
||||
if curData.rewards[i].missionId == configData[j].Id then
|
||||
local func = function()
|
||||
local tempData = {}
|
||||
tempData.missionId = configData[j].Id
|
||||
tempData.state = curData.rewards[i].state
|
||||
|
@ -347,6 +348,15 @@ local TypeUpdateFunc = {
|
|||
end
|
||||
table.insert(tempDataList[configData[j].Type],tempData)
|
||||
end
|
||||
--每日特惠类型为2每日只显示一个,前端手动关闭
|
||||
-- LogGreen("Type:"..tostring(configData[j].Type).." UnlockDay:"..tostring(configData[j].UnlockDay).." value:"..tostring(curData.value))
|
||||
if configData[j].Type == 2 and configData[j].UnlockDay == curData.value then
|
||||
func()
|
||||
elseif configData[j].Type ~= 2 then
|
||||
func()
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
curData.rewards = tempDataList
|
||||
|
|
Loading…
Reference in New Issue