珍奇宝阁排序修改

dev_chengFeng
wangzhenxing 2020-08-24 18:29:18 +09:00
parent 23ebaf5756
commit c38fdf9784
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ 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.Id < b.Id
return a.Price < b.Price
else
return aboughtNum > bboughtNum
end