From 0d3c8a082d76d92445bf6d07b4dc6fec8f77015f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 17:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rpc/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rpc/Service.php b/Rpc/Service.php index 443aa096..f9c431cc 100644 --- a/Rpc/Service.php +++ b/Rpc/Service.php @@ -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()]);