改名
This commit is contained in:
@@ -148,7 +148,6 @@ class Curl extends ClientAbstracts
|
|||||||
if ($output === FALSE) {
|
if ($output === FALSE) {
|
||||||
return $this->fail(500, $output);
|
return $this->fail(500, $output);
|
||||||
}
|
}
|
||||||
var_dump($output);
|
|
||||||
[$header, $body, $status] = $this->explode($output);
|
[$header, $body, $status] = $this->explode($output);
|
||||||
if ($status != 200 && $status != 201) {
|
if ($status != 200 && $status != 201) {
|
||||||
$data = $this->fail($status, $body, [], $header);
|
$data = $this->fail($status, $body, [], $header);
|
||||||
@@ -180,6 +179,8 @@ class Curl extends ClientAbstracts
|
|||||||
$status = (int)explode(' ', trim($header[0]))[1];
|
$status = (int)explode(' ', trim($header[0]))[1];
|
||||||
$header = $this->headerFormat($header);
|
$header = $this->headerFormat($header);
|
||||||
|
|
||||||
|
var_dump($this->resolve($header, $body));
|
||||||
|
|
||||||
return [$header, $this->resolve($header, $body), $status];
|
return [$header, $this->resolve($header, $body), $status];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user