add clear

This commit is contained in:
as2252258@163.com
2020-03-09 16:05:48 +08:00
parent ef89db4c65
commit 3f2a69a05b
+3 -3
View File
@@ -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);