From 744f464db476a7bed7187760e08b2659d1c5fbaa Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 9 Jan 2020 19:05:39 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index 15043fc..2064396 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -574,10 +574,6 @@ class HttpClient return $result; } - if (!is_array($body)) { - return $body; - } - $result['code'] = $body[$this->errorCodeField] ?? 0; $result['message'] = $body[$this->errorMsgField] ?? 'system success.'; $result['data'] = $body;