2,509
个编辑
小 (version support) |
小 (version support) |
||
第10行: | 第10行: | ||
local versions = {date = {}, name = {}} | local versions = {date = {}, name = {}} | ||
local function verQuery(mDate) | local function verQuery(mDate) | ||
local dDate = tonumber(lang:formatDate(' | local dDate = tonumber(lang:formatDate('ymd', '@' .. mDate)) - 1 | ||
local dates = versions.date | local dates = versions.date | ||
if dDate > dates[#dates] then return '?' end | |||
local l, r = 1, #dates | local l, r = 1, #dates | ||
while l < r do | while l < r do | ||
第57行: | 第58行: | ||
table.insert(row, input '时长' or ' - ') | table.insert(row, input '时长' or ' - ') | ||
if plat ~= 'ns' then | if plat ~= 'ns' then | ||
local version = input '收录版本' or verQuery(song.date) | local version = input '收录版本' or verQuery(song.date) | ||
table.insert(row, song.version .. '.' .. version) | table.insert(row, song.version .. '.' .. version) | ||
end | end |
个编辑