diff --git a/plugin/think-plugs-worker/src/command/Worker.php b/plugin/think-plugs-worker/src/command/Worker.php index 033fc4ebe..c27eadeca 100644 --- a/plugin/think-plugs-worker/src/command/Worker.php +++ b/plugin/think-plugs-worker/src/command/Worker.php @@ -88,7 +88,7 @@ class Worker extends Command // 静态属性设置 foreach ($this->config['worker'] ?? [] as $name => $value) { - if (in_array($name, ['daemonize', 'stdoutFile', 'pidFile', 'logFile'])) { + if (in_array($name, ['daemonize', 'statusFile', 'stdoutFile', 'pidFile', 'logFile'])) { Workerman::${$name} = $value; unset($this->config['worker'][$name]); }