This commit is contained in:
2021-03-23 17:34:50 +08:00
parent 4a8e627a46
commit 0d3c8a082d
+1 -1
View File
@@ -73,7 +73,7 @@ class Service extends Component
if (($node = router()->find_path($this->replace($request, $service))) === null) {
throw new Exception('Cmd not find.');
}
return $node->dispatch();
return serialize($node->dispatch());
} catch (\Throwable $exception) {
$this->addError($exception);
return serialize(['state' => 'fail', 'message' => $exception->getMessage()]);