From 401d51a1446fa56e6f52746ab685ee2c26886ae5 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Fri, 25 Jan 2019 11:41:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/common/Plugins/GateWayWorker/Events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/Plugins/GateWayWorker/Events.php b/application/common/Plugins/GateWayWorker/Events.php index 4d5d61e..93d866c 100644 --- a/application/common/Plugins/GateWayWorker/Events.php +++ b/application/common/Plugins/GateWayWorker/Events.php @@ -64,7 +64,7 @@ class Events public static function onClose($client_id) { // 向所有人发送 - $data = ['action' => 'onClose', 'data' => ['client_id' => $client_id, 'online' => Gateway::getAllClientCountindex.html()]]; + $data = ['action' => 'onClose', 'data' => ['client_id' => $client_id, 'online' => Gateway::getAllClientCount()]]; GateWay::sendToAll(json_encode($data)); } }