公告页面信息更详细一点

This commit is contained in:
MrZ_26
2024-08-07 13:40:25 +08:00
parent de3e1fcdc7
commit 424a3b3bee
2 changed files with 4 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ function NET.getNotice(count)
if res and res.code==200 then
WAIT.interrupt()
SCN.go('notice',nil,res.data.contents)
SCN.go('notice',nil,noticeLang[SETTING.locale],res.data.contents)
end
end)
end

View File

@@ -2,11 +2,11 @@ local scene={}
function scene.enter()
BG.set('cubes')
local data=SCN.args[1]
local data=SCN.args[2]
if data then
local texts={}
local texts={"<"..SCN.args[1]..">"}
for i=1,#data do
table.insert(texts,data[i].timestamp or "20??/??/??")
table.insert(texts,("[$1] $2"):repD(data[i].id or "?",data[i].timestamp or "20??/??/??"))
table.insert(texts,data[i].content)
table.insert(texts,"")
table.insert(texts,"——————————————————————————")