百宝商会文字错乱修改
parent
273131cb4c
commit
8c8456b3a6
|
@ -170,13 +170,7 @@ function this.SortData(allData)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
table.sort(allData, function(a,b)
|
table.sort(allData, function(a,b)
|
||||||
-- local aboughtNum = a.Limit - OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, a.Id) > 0 and 2 or 1
|
return a.Sort < b.Sort
|
||||||
-- local bboughtNum = b.Limit - OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, b.Id) > 0 and 2 or 1
|
|
||||||
-- if aboughtNum == bboughtNum then
|
|
||||||
return a.Id < b.Id
|
|
||||||
-- else
|
|
||||||
-- return aboughtNum > bboughtNum
|
|
||||||
-- end
|
|
||||||
end)
|
end)
|
||||||
return allData
|
return allData
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue