车迟抢夺记录排续

zhangqiang 2020-08-29 15:40:24 +08:00
parent 3effb209bb
commit 162180894b
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ function GuildCarDelayLootRecordPopup:OnShow()
table.insert(allLootRecordData,v)
end
table.sort(allLootRecordData, function(a,b)
if (a and #a > 0) and (b and #b > 0) then
return a[1].time > b[1].time
end
end)
for i = 1, #recordPerList do
if allLootRecordData[i] and #allLootRecordData[i] > 0 then
Util.GetGameObject(recordPerList[i], "titleImage/titleImage/titleText"):GetComponent("Text").text = this.TimeStampToDateString(allLootRecordData[i][1].time,2)