From ea4b0e9c1cc0aa62e2ffb4b9510d19ed171b9b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 18:25:01 +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 d479d6c7..637d2060 100644 --- a/Rpc/Service.php +++ b/Rpc/Service.php @@ -95,7 +95,7 @@ class Service extends Component public static function replace(Request $request, array $service): Request { $body = $request->params->getBodyAndClear(); - if (is_null($serialize = unserialize($body))) { + if (is_null($serialize = Json::decode($body))) { throw new Exception('Protocol format error.'); } if (!isset($serialize['cmd'])) {