From 2b69ead3cf6c7a752764e681dea740a88c5edb89 Mon Sep 17 00:00:00 2001 From: lin <465382251@qq.com> Date: Fri, 3 Sep 2021 16:27:31 +0800 Subject: [PATCH] websocket undefined index bug --- src/Api/WebSocketV3/SocketClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/WebSocketV3/SocketClient.php b/src/Api/WebSocketV3/SocketClient.php index 4921bb7..adacfd0 100644 --- a/src/Api/WebSocketV3/SocketClient.php +++ b/src/Api/WebSocketV3/SocketClient.php @@ -137,7 +137,7 @@ protected function getData($global,$callback=null,$sub=[]){ //$data=$global->get(strtolower($v)); //$temp[strtolower($v)]=$data; $k_strtolower=strtolower($v); - $temp[$k_strtolower]=$global_local['public'][$k_strtolower]; + if(isset($global_local['public'][$k_strtolower])) $temp[$k_strtolower]=$global_local['public'][$k_strtolower]; } } }else{