【云游商人】排序错误

dev_chengFeng
gaoxin 2021-04-27 20:44:45 +08:00
parent 923034957e
commit 6d38527065
1 changed files with 10 additions and 4 deletions

View File

@ -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 ()