From 1cf754d53e20e0d5978f569372e88f727db3fc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 14:58:00 +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 --- HttpServer/Client/ClientAbstracts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HttpServer/Client/ClientAbstracts.php b/HttpServer/Client/ClientAbstracts.php index de8ba9ae..8ee81fa4 100644 --- a/HttpServer/Client/ClientAbstracts.php +++ b/HttpServer/Client/ClientAbstracts.php @@ -603,7 +603,9 @@ abstract class ClientAbstracts extends Component implements IClient if (!is_null($json = JSON::decode($body))) { return $json; } - return Help::toArray($body); + if (!is_null($json = Help::toArray($body))) { + return $json; + } } return $body; }