珍奇宝阁排序修改,198礼包放到最前面

dev_chengFeng
JieLing 2020-08-25 20:39:03 +08:00
parent abd9e6b65a
commit 934b78e022
1 changed files with 5 additions and 1 deletions

View File

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