【连购礼包】顺序错误修改
parent
3e11f70576
commit
7e96ae056f
|
@ -342,7 +342,8 @@ local TypeUpdateFunc = {
|
|||
tempData.otherData.Price = goodsConfig[configData[j].GoodId].Price
|
||||
tempData.progress = goodsConfig[configData[j].GoodId].Limit - curData.rewards[i].progress
|
||||
end
|
||||
-- LogPink("missionId:"..tostring(tempData.missionId).." progress:"..tostring(tempData.progress))
|
||||
-- LogPink("missionId:"..tostring(tempData.missionId).." GoodId:"..tostring(tempData.otherData.GoodId).." Type(1:礼包、2商品):"..tostring(tempData.otherData.GoodType)
|
||||
-- .." progress:"..tostring(tempData.progress).." Name:"..tostring(tempData.otherData.Name).." Price:"..tostring(tempData.otherData.Price))
|
||||
if not tempDataList[configData[j].Type] then
|
||||
tempDataList[configData[j].Type] = {}
|
||||
end
|
||||
|
@ -355,7 +356,6 @@ local TypeUpdateFunc = {
|
|||
elseif configData[j].Type ~= 2 then
|
||||
func()
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -365,7 +365,7 @@ local TypeUpdateFunc = {
|
|||
table.remove(curData.rewards,i)
|
||||
end
|
||||
end
|
||||
for index, value in ipairs(curData.rewards) do
|
||||
for key, value in pairs(curData.rewards) do
|
||||
for i = #value, 1,-1 do
|
||||
if value[i].state == 5 then
|
||||
table.remove(value,i)
|
||||
|
@ -374,6 +374,9 @@ local TypeUpdateFunc = {
|
|||
table.sort(value,function (a,b)
|
||||
return a.missionId < b.missionId
|
||||
end)
|
||||
-- for i = 1, #value do
|
||||
-- LogGreen("Id:"..tostring(value[i].missionId))
|
||||
-- end
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue