From c412df7252b125616f21c2726b65ff37ed3e91d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Apr 2021 16:35:08 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index ea4cab1..d5f5916 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -784,7 +784,6 @@ class HttpClient return $body; } $type = isset($data['content-type']) ? $data['content-type'] : (isset($data['Content-Type']) ? $data['Content-Type'] : 'text/html'); - var_dump($type, $body); if (strpos($type, 'text/html') !== false) { return $body; } else if (strpos($type, 'json') !== false) { @@ -792,6 +791,7 @@ class HttpClient } else if (strpos($type, 'xml') !== false) { return Help::xmlToArray($body); } else if (strpos($type, 'plain') !== false) { + var_dump($type, $body); return Help::toArray($body); } return $body;