mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改系统任务
This commit is contained in:
parent
369b76a7ae
commit
dc0018512f
@ -59,7 +59,7 @@ class Listen extends Task
|
|||||||
Db::name('SystemQueue')->where(['id' => $item['id']])->update(['status' => '2', 'start_at' => date('Y-m-d H:i:s')]);
|
Db::name('SystemQueue')->where(['id' => $item['id']])->update(['status' => '2', 'start_at' => date('Y-m-d H:i:s')]);
|
||||||
$this->cmd = "{$this->bin} xtask:_work {$item['id']} -";
|
$this->cmd = "{$this->bin} xtask:_work {$item['id']} -";
|
||||||
if ($this->isWin()) {
|
if ($this->isWin()) {
|
||||||
$this->cmd = __DIR__ . DIRECTORY_SEPARATOR . "bin" . DIRECTORY_SEPARATOR . "process.exe {$this->cmd}";
|
$this->cmd = __DIR__ . DIRECTORY_SEPARATOR . "bin" . DIRECTORY_SEPARATOR . "ThinkAdmin.exe {$this->cmd}";
|
||||||
}
|
}
|
||||||
if ($this->checkProcess()) {
|
if ($this->checkProcess()) {
|
||||||
$output->comment("处理任务的子进程已经存在 --> [{$item['id']}] {$item['title']}");
|
$output->comment("处理任务的子进程已经存在 --> [{$item['id']}] {$item['title']}");
|
||||||
|
@ -68,7 +68,7 @@ class Start extends Task
|
|||||||
private function setWinProcess()
|
private function setWinProcess()
|
||||||
{
|
{
|
||||||
if ($this->isWin()) {
|
if ($this->isWin()) {
|
||||||
$this->cmd = __DIR__ . DIRECTORY_SEPARATOR . "bin" . DIRECTORY_SEPARATOR . "process.exe {$this->bin} xtask:listen";
|
$this->cmd = __DIR__ . DIRECTORY_SEPARATOR . "bin" . DIRECTORY_SEPARATOR . "ThinkAdmin.exe {$this->bin} xtask:listen";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user