From 5e06eb7a7b82fede495213fc38152e6d544180af Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sun, 8 Nov 2020 17:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Amqp/Consumer/ChatMessageConsumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Amqp/Consumer/ChatMessageConsumer.php b/app/Amqp/Consumer/ChatMessageConsumer.php index 97b396d..c4f1e57 100644 --- a/app/Amqp/Consumer/ChatMessageConsumer.php +++ b/app/Amqp/Consumer/ChatMessageConsumer.php @@ -76,7 +76,7 @@ class ChatMessageConsumer extends ConsumerMessage } $server = server(); - foreach (server()->connections as $fd) { + foreach ($server->connections as $fd) { if ($server->isEstablished($fd)) { $server->push($fd, "Recv: 我是后台进程 [{$data['message']}]"); }