From c78e2c0fbfc56a0c38eee6dc81558ac38f721767 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 7 Jun 2021 12:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=BD=E4=BB=A4=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_console.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parts/scenes/app_console.lua b/parts/scenes/app_console.lua index 1111d613..b689f6e7 100644 --- a/parts/scenes/app_console.lua +++ b/parts/scenes/app_console.lua @@ -690,7 +690,7 @@ local commands={}do end end end - function commands.mng_broadcast(str) + function commands.m_broadcast(str) if #str>0 then WS.send('manage','{"action":0,"data":'..JSON.encode{message=str}..'}') log{C.Y,"Request sent"} @@ -698,7 +698,7 @@ local commands={}do log{C.R,"format error"} end end - function commands.mng_shutdown(sec) + function commands.m_shutdown(sec) sec=tonumber(sec) if sec and sec>0 and sec~=math.floor(sec) then WS.send('manage','{"action":9,"data":'..JSON.encode{countdown=tonumber(sec)}..'}') @@ -707,9 +707,9 @@ local commands={}do log{C.R,"format error"} end end - function commands.mng_connInfo()WS.send('manage','{"action":10}')end - function commands.mng_playMgrInfo()WS.send('manage','{"action":11}')end - function commands.mng_streamMgrInfo()WS.send('manage','{"action":12}')end + function commands.m_connInfo()WS.send('manage','{"action":10}')end + function commands.m_playMgrInfo()WS.send('manage','{"action":11}')end + function commands.m_streamMgrInfo()WS.send('manage','{"action":12}')end for cmd,body in next,commands do if type(body)=='function'then