From dfb5be87e15b41cb3bcad0a56ec3f02eeda45fa0 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 20 Aug 2019 14:02:23 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Queue.php | 11 +++++++++++ application/admin/view/queue/index.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/application/admin/controller/Queue.php b/application/admin/controller/Queue.php index e34cd02d6..6f54930c9 100644 --- a/application/admin/controller/Queue.php +++ b/application/admin/controller/Queue.php @@ -54,6 +54,17 @@ class Queue extends Controller $query->like('title,preload')->equal('status')->order('id desc')->page(); } + /** + * 重启系统任务 + * @auth true + * @throws \think\Exception + * @throws \think\exception\PDOException + */ + public function redo() + { + $this->_save($this->table, ['status' => '1']); + } + /** * 删除系统任务 * @auth true diff --git a/application/admin/view/queue/index.html b/application/admin/view/queue/index.html index e76fca548..3305b89d2 100644 --- a/application/admin/view/queue/index.html +++ b/application/admin/view/queue/index.html @@ -64,7 +64,7 @@ {/if}
- 状态描述:{$vo.status_desc|raw|default="没有获取到状态描述"} + 状态描述:{$vo.desc|raw|default="没有获取到状态描述"} {/foreach}