diff --git a/app/admin/controller/api/Queue.php b/app/admin/controller/api/Queue.php index 6b7073b02..d5f58a724 100644 --- a/app/admin/controller/api/Queue.php +++ b/app/admin/controller/api/Queue.php @@ -98,15 +98,15 @@ class Queue extends Controller { if (AdminService::instance()->isSuper()) try { $message = $this->app->console->call('xadmin:queue', ['status'])->fetch(); - if (preg_match('/process.*?\d+.*?running/', $message, $attrs)) { - echo '' . $message . ''; + if (preg_match('/process.*?\d+.*?running/', $message)) { + echo "已启动"; } else { - echo '' . $message . ''; + echo "未启动"; } } catch (Exception $exception) { - echo '' . $exception->getMessage() . ''; + echo "异 常"; } else { - echo '只有超级管理员才能操作!'; + echo "无权限"; } } } \ No newline at end of file diff --git a/app/admin/view/queue/index.html b/app/admin/view/queue/index.html index d12a29ae8..f1677e29a 100644 --- a/app/admin/view/queue/index.html +++ b/app/admin/view/queue/index.html @@ -20,6 +20,11 @@ {block name="content"}