特权商城礼包顺序问题修复
parent
b7f59ef2fe
commit
3e46c0804c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue