Browse Source

Update Queue.php

邹景立 3 years ago
parent
commit
fe64a1399e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/api/Queue.php

+ 2 - 2
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;