珍奇宝阁排序修改
parent
23ebaf5756
commit
c38fdf9784
|
@ -85,7 +85,7 @@ function ZhenQiYiBaoPage:SortData()
|
||||||
local aboughtNum = a.Limit - OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, a.Id) > 0 and 2 or 1
|
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
|
local bboughtNum = b.Limit - OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, b.Id) > 0 and 2 or 1
|
||||||
if aboughtNum == bboughtNum then
|
if aboughtNum == bboughtNum then
|
||||||
return a.Id < b.Id
|
return a.Price < b.Price
|
||||||
else
|
else
|
||||||
return aboughtNum > bboughtNum
|
return aboughtNum > bboughtNum
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue