From 3f2a69a05ba5b909652d03c8a6d23bc5e5df9be4 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 9 Mar 2020 16:05:48 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 341022a..eeecf6f 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -478,6 +478,9 @@ class HttpClient $data = new Result(['code' => 500, 'message' => curl_error($ch)]); } else { [$header, $body, $status] = $this->explode($output); + + var_dump($header, $body, $status);exit; + if ($status != 200) { $data = new Result(['code' => 500, 'message' => $body, 'header' => $header]); } else { @@ -578,9 +581,6 @@ class HttpClient $this->setHeaders([]); if ($this->callback !== NULL) { - - var_dump($_data);exit; - $result = call_user_func($this->callback, $body, $_data, $header); $this->setCallback(null);