diff --git a/application/admin/queue/task/Listen.php b/application/admin/queue/task/Listen.php index 6c646ce81..4a2015ca9 100644 --- a/application/admin/queue/task/Listen.php +++ b/application/admin/queue/task/Listen.php @@ -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')]); $this->cmd = "{$this->bin} xtask:_work {$item['id']} -"; 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()) { $output->comment("处理任务的子进程已经存在 --> [{$item['id']}] {$item['title']}"); diff --git a/application/admin/queue/task/Start.php b/application/admin/queue/task/Start.php index 8bd9c4937..50868de74 100644 --- a/application/admin/queue/task/Start.php +++ b/application/admin/queue/task/Start.php @@ -68,7 +68,7 @@ class Start extends Task private function setWinProcess() { 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"; } } } diff --git a/application/admin/queue/task/bin/process.exe b/application/admin/queue/task/bin/ThinkAdmin.exe similarity index 58% rename from application/admin/queue/task/bin/process.exe rename to application/admin/queue/task/bin/ThinkAdmin.exe index e2621b7ad..3227aca67 100644 Binary files a/application/admin/queue/task/bin/process.exe and b/application/admin/queue/task/bin/ThinkAdmin.exe differ