改名
This commit is contained in:
@@ -600,12 +600,7 @@ abstract class ClientAbstracts extends Component implements IClient
|
||||
} else if (strpos($type, 'xml') !== false) {
|
||||
return Help::xmlToArray($body);
|
||||
} else if (strpos($type, 'plain') !== false) {
|
||||
if (!is_null($json = JSON::decode($body))) {
|
||||
return $json;
|
||||
}
|
||||
if (!is_null($json = Help::toArray($body))) {
|
||||
return $json;
|
||||
}
|
||||
return Help::toArray($body);
|
||||
}
|
||||
return $body;
|
||||
}
|
||||
|
||||
@@ -179,8 +179,6 @@ class Curl extends ClientAbstracts
|
||||
$status = (int)explode(' ', trim($header[0]))[1];
|
||||
$header = $this->headerFormat($header);
|
||||
|
||||
var_dump($this->resolve($header, $body));
|
||||
|
||||
return [$header, $this->resolve($header, $body), $status];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user