|
@@ -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;
|