特权商城礼包顺序问题修复

dev_chengFeng
ZhangBiao 2020-09-03 15:14:08 +08:00
parent b7f59ef2fe
commit 3e46c0804c
1 changed files with 6 additions and 1 deletions

View File

@ -143,7 +143,12 @@ function GiftView:RefreshGiftData()
table.insert(shopData,topspeedData[i])
end
table.sort(shopData,function(a,b)
return a.sortId < b.sortId
if a.sortId == b.sortId then
return a.DataType > b.DataType
else
return a.sortId > b.sortId
end
end)
local callBack = function(index, item)
self:RefreshShowData(item, shopData[index].data, self.buyType, shopData[index].DataType)