add clear
This commit is contained in:
@@ -478,6 +478,9 @@ class HttpClient
|
|||||||
$data = new Result(['code' => 500, 'message' => curl_error($ch)]);
|
$data = new Result(['code' => 500, 'message' => curl_error($ch)]);
|
||||||
} else {
|
} else {
|
||||||
[$header, $body, $status] = $this->explode($output);
|
[$header, $body, $status] = $this->explode($output);
|
||||||
|
|
||||||
|
var_dump($header, $body, $status);exit;
|
||||||
|
|
||||||
if ($status != 200) {
|
if ($status != 200) {
|
||||||
$data = new Result(['code' => 500, 'message' => $body, 'header' => $header]);
|
$data = new Result(['code' => 500, 'message' => $body, 'header' => $header]);
|
||||||
} else {
|
} else {
|
||||||
@@ -578,9 +581,6 @@ class HttpClient
|
|||||||
$this->setHeaders([]);
|
$this->setHeaders([]);
|
||||||
|
|
||||||
if ($this->callback !== NULL) {
|
if ($this->callback !== NULL) {
|
||||||
|
|
||||||
var_dump($_data);exit;
|
|
||||||
|
|
||||||
$result = call_user_func($this->callback, $body, $_data, $header);
|
$result = call_user_func($this->callback, $body, $_data, $header);
|
||||||
$this->setCallback(null);
|
$this->setCallback(null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user