From 47fda8e3747cc38a028f4a6914c06c3c8dc40878 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 13 Oct 2020 21:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=91=8A/=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E6=96=87=E5=AD=97=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=97=B6=E9=95=BF=EF=BC=8C=E5=88=A0=E9=99=A4=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/tick.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/parts/tick.lua b/parts/tick.lua index 70ffeac0..2fac8408 100644 --- a/parts/tick.lua +++ b/parts/tick.lua @@ -79,17 +79,16 @@ function Tick.httpREQ_launch(data) if res then if res.code==200 then res=json.decode(res.body) - LOG.print(res.notice,"message") + LOG.print(res.notice,360,color.sky) if gameVersion==res.version then - LOG.print(text.versionIsNew,"message") + LOG.print(text.versionIsNew,360,color.sky) else LOG.print(string.gsub(text.versionIsOld,"$1",res.version),"warn") end - return true else LOG.print("Code error: "..res.code,"warn") - return true end + return true elseif err then LOG.print(text.getNoticeFail..":"..err,"warn") return true @@ -97,7 +96,6 @@ function Tick.httpREQ_launch(data) data.time=data.time+1 if data.time==180 then LOG.print(text.httpTimeout,"message") - coroutine.resume(data.selfFunc) return true end end