[更新]修改系统任务

This commit is contained in:
Anyon 2019-08-20 14:02:23 +08:00
parent f258e2cccc
commit dfb5be87e1
2 changed files with 12 additions and 1 deletions

View File

@ -54,6 +54,17 @@ class Queue extends Controller
$query->like('title,preload')->equal('status')->order('id desc')->page(); $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 * @auth true

View File

@ -64,7 +64,7 @@
</a> </a>
{/if} {/if}
<br> <br>
状态描述:<span class="color-desc">{$vo.status_desc|raw|default="没有获取到状态描述"}</span> 状态描述:<span class="color-desc">{$vo.desc|raw|default="没有获取到状态描述"}</span>
</td> </td>
</tr> </tr>
{/foreach} {/foreach}