提交 d1b2f1d6 编写于 作者: qq_21560475's avatar qq_21560475

fix: 执行定时任务命令方式时make无法实例化ArrayInput问题

上级 1ce7feaf
......@@ -116,7 +116,7 @@ class MineExecutor
case SettingCrontab::COMMAND_CRONTAB:
$command = ['command' => $crontab->getCallback()];
$parameter = $crontab->getParameter() ?: '{}';
$input = make(ArrayInput::class, array_merge($command, json_decode($parameter, true)));
$input = make(ArrayInput::class, ['parameters' => array_merge($command, json_decode($parameter, true))]);
$output = make(NullOutput::class);
$application = $this->container->get(ApplicationInterface::class);
$application->setAutoExit(false);
......@@ -259,4 +259,4 @@ class MineExecutor
];
$logService->save($data);
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册