This commit is contained in:
2020-09-08 10:58:09 +08:00
parent 37d29d5b86
commit f5f2982d12
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -91,10 +91,10 @@ class Application extends BaseApplication
$this->set('input', $argv);
try {
$manager = Snowflake::app()->get('console');
$manager->setParameters();
$manager->setParameters($argv);
$class = $manager->search();
$params = response()->send($manager->execCommand($class));
} catch (\Exception $exception) {
} catch (\Throwable $exception) {
$params = response()->send(implode("\n", [
'Msg: ' . $exception->getMessage(),
'Line: ' . $exception->getLine(),