公告页面信息更详细一点
This commit is contained in:
@@ -228,7 +228,7 @@ function NET.getNotice(count)
|
|||||||
|
|
||||||
if res and res.code==200 then
|
if res and res.code==200 then
|
||||||
WAIT.interrupt()
|
WAIT.interrupt()
|
||||||
SCN.go('notice',nil,res.data.contents)
|
SCN.go('notice',nil,noticeLang[SETTING.locale],res.data.contents)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ local scene={}
|
|||||||
|
|
||||||
function scene.enter()
|
function scene.enter()
|
||||||
BG.set('cubes')
|
BG.set('cubes')
|
||||||
local data=SCN.args[1]
|
local data=SCN.args[2]
|
||||||
if data then
|
if data then
|
||||||
local texts={}
|
local texts={"<"..SCN.args[1]..">"}
|
||||||
for i=1,#data do
|
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,data[i].content)
|
||||||
table.insert(texts,"")
|
table.insert(texts,"")
|
||||||
table.insert(texts,"——————————————————————————")
|
table.insert(texts,"——————————————————————————")
|
||||||
|
|||||||
Reference in New Issue
Block a user