add clear
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user