From 8ca892d565bf4323b180c312e22e5cefa8384c88 Mon Sep 17 00:00:00 2001 From: lwj <465382251@qq.com> Date: Fri, 26 Nov 2021 10:41:13 +0800 Subject: [PATCH] webcosket v5 undefined --- src/Api/WebSocketV5/SocketClient.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Api/WebSocketV5/SocketClient.php b/src/Api/WebSocketV5/SocketClient.php index ea520df..961958a 100644 --- a/src/Api/WebSocketV5/SocketClient.php +++ b/src/Api/WebSocketV5/SocketClient.php @@ -149,6 +149,8 @@ protected function getData($global,$callback=null,$sub=[]){ )*/ //$data=$global->get($k); + if(!isset($global_local['public'][$k])) continue; + $data=$global_local['public'][$k]; $temp[$k]=$data; }