【云游商人】排序错误
parent
923034957e
commit
6d38527065
|
@ -23,11 +23,17 @@ local TypeUpdateFunc = {
|
|||
end
|
||||
end
|
||||
table.sort(dataList[ActivityTypeDef.YunYouShangRen].rewards,function (a,b)
|
||||
if a.progress == b.progress then
|
||||
return a.missionId < b.missionId
|
||||
else
|
||||
return a.progress > b.progress
|
||||
if a.progress == 0 and b.progress > 0 then
|
||||
return false
|
||||
end
|
||||
if a.progress > 0 and b.progress == 0 then
|
||||
return true
|
||||
end
|
||||
return a.missionId < b.missionId
|
||||
-- if a.progress == b.progress then
|
||||
-- else
|
||||
-- return a.progress > b.progress
|
||||
-- end
|
||||
end)
|
||||
end,
|
||||
[ActivityTypeDef.ContinuityRecharge] = function ()
|
||||
|
|
Loading…
Reference in New Issue