From fe64a1399e41d61e19f40d40e58a5e1d2dce1140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 16 Oct 2021 16:53:15 +0800 Subject: [PATCH] Update Queue.php --- app/admin/controller/api/Queue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/api/Queue.php b/app/admin/controller/api/Queue.php index 6f3c2241f..64426dad6 100644 --- a/app/admin/controller/api/Queue.php +++ b/app/admin/controller/api/Queue.php @@ -74,14 +74,14 @@ class Queue extends Controller public function start() { try { - $message = nl2br($this->app->console->call('xadmin:queue', ['start'])->fetch()); + $message = $this->app->console->call('xadmin:queue', ['start'])->fetch(); if (stripos($message, 'daemons started successfully for pid')) { sysoplog('系统运维管理', '尝试启动后台服务主进程'); $this->success('后台服务主进程启动成功!'); } elseif (stripos($message, 'daemons already exist for pid')) { $this->success('后台服务主进程已经存在!'); } else { - $this->error($message); + $this->error(nl2br($message)); } } catch (HttpResponseException $exception) { throw $exception;