修改系统任务

This commit is contained in:
Anyon 2019-11-23 18:41:52 +08:00
parent ddab1c5775
commit 42c0cc47ee
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class Queue extends Controller
{
try {
$message = nl2br($this->app->console->call('xtask:start')->fetch());
stripos($message, '成功') !== false ? $this->success($message) : $this->error($message);
preg_match('/主进程\d+/', $message, $attr) ? $this->success($message) : $this->error($message);
} catch (HttpResponseException $exception) {
throw $exception;
} catch (\Exception $e) {

View File

@ -3,11 +3,11 @@
{block name="button"}
{if auth("remove")}
<button data-action='{:url("remove")}' data-confirm="确定批量删除任务吗?" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button>
<button data-action='{:url("remove")}' data-confirm="确定批量删除任务吗?" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button>
{/if}
{if auth("start") && $iswin}
<button data-load='{:url("start")}' class='layui-btn layui-btn-sm layui-btn-primary'>创建监听</button>
<button data-load='{:url("start")}' class='layui-btn layui-btn-sm layui-btn-primary'>开始监听</button>
{/if}
{if auth("stop") && $iswin}