From b460fd2518300bc26cd9dc1a35ddaf067458f218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 1 Apr 2020 13:08:12 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index a05afbe..575f1ad 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -658,6 +658,9 @@ class HttpClient return $result; } + + var_dump($body, $_data); + if (is_string($body)) { $result['code'] = 0; $result['message'] = ''; @@ -668,6 +671,8 @@ class HttpClient $result['data'] = $body; $result['header'] = $header; $result['httpStatus'] = $statusCode; + + return new Result($result); }