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;