珍奇宝阁排序修改,198礼包放到最前面
parent
abd9e6b65a
commit
934b78e022
|
@ -85,7 +85,11 @@ function ZhenQiYiBaoPage:SortData()
|
|||
local aboughtNum = a.Limit - OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, a.Id) > 0 and 2 or 1
|
||||
local bboughtNum = b.Limit - OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, b.Id) > 0 and 2 or 1
|
||||
if aboughtNum == bboughtNum then
|
||||
return a.Price < b.Price
|
||||
if a.Sequence == b.Sequence then
|
||||
return a.Price < b.Price
|
||||
else
|
||||
return a.Sequence < b.Sequence
|
||||
end
|
||||
else
|
||||
return aboughtNum > bboughtNum
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue