From 6539c988e8787e041768a49c43e163b5cb493597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 27 May 2020 16:30:12 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index e313211..3e59a37 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -546,11 +546,8 @@ class HttpClient */ private function toRequest($data) { - if (!is_array($data)) { - $data = Help::toArray($data); - if (is_string($data)) { - return $data; - } + if (is_string($data)) { + return $data; } $contentType = 'application/x-www-form-urlencoded';