From 775c275288117f0b1fecd32bfbd0de61ae6157a1 Mon Sep 17 00:00:00 2001 From: wenhao <854854321@qq.com> Date: Fri, 25 Dec 2020 16:28:21 +0800 Subject: [PATCH] =?UTF-8?q?[MOD]=20=E8=A7=A3=E5=86=B3php=20Notice=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ZM/Event/ServerEventHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZM/Event/ServerEventHandler.php b/src/ZM/Event/ServerEventHandler.php index e1b75265..a887480c 100644 --- a/src/ZM/Event/ServerEventHandler.php +++ b/src/ZM/Event/ServerEventHandler.php @@ -369,7 +369,7 @@ class ServerEventHandler ManagerGM::pushConnect($request->fd, $type_conn); $conn = ManagerGM::get($request->fd); set_coroutine_params(["server" => $server, "request" => $request, "connection" => $conn, "fd" => $request->fd]); - $conn->setOption("connect_id", strval($request->header["x-self-id"]) ?? ""); + $conn->setOption("connect_id", strval($request->header["x-self-id"] ?? "")); $dispatcher = new EventDispatcher(OnSwooleEvent::class); $dispatcher->setRuleFunction(function ($v) {