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);