From 20f031fcb47c8df3fa019ee321a3c8ab96ff0b51 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 30 Mar 2021 14:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dws=E6=A8=A1=E5=9D=97=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=8F=A1=E6=89=8B=E9=94=99=E8=AF=AF=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/websocket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zframework/websocket.lua b/Zframework/websocket.lua index 58f1fb99..7e26ef64 100644 --- a/Zframework/websocket.lua +++ b/Zframework/websocket.lua @@ -88,7 +88,7 @@ do--Connect readCHN:push("success") else local reason=JSON.decode(SOCK:receive(ctLen)) - readCHN:push(code..":"..(reason and reason.message or"Server Error")) + readCHN:push((code or"???")..":"..(reason and reason.message or"Server Error")) end else readCHN:push(err)