配置 workflows

This commit is contained in:
Wisp X
2022-03-06 18:02:44 +08:00
parent 2bd6f6c23d
commit ef08cf6fa8
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class Controller extends BaseController
$data = collect($request->except('account'))->transform(fn($item, $key) => ['--'.$key => $item])->collapse();
$output = new BufferedOutput();
$exitCode = Artisan::call('lsky:install', $data->toArray(), $output);
if (! $exitCode) {
if ($exitCode) {
throw new \Exception(str_replace(PHP_EOL, '<br/>', $output->fetch()));
}
$user = new User([