add clear
This commit is contained in:
@@ -403,7 +403,6 @@ class HttpClient
|
|||||||
if (!empty($this->port) && $this->checkIsIp($this->host)) {
|
if (!empty($this->port) && $this->checkIsIp($this->host)) {
|
||||||
$this->host .= ':' . $this->port;
|
$this->host .= ':' . $this->port;
|
||||||
}
|
}
|
||||||
var_dump('https://' . $this->host . '/' . $url);
|
|
||||||
if ($this->isSSL) {
|
if ($this->isSSL) {
|
||||||
return $this->curl('https://' . $this->host . '/' . $url, $data);
|
return $this->curl('https://' . $this->host . '/' . $url, $data);
|
||||||
} else {
|
} else {
|
||||||
@@ -629,6 +628,7 @@ class HttpClient
|
|||||||
private function curl($url, $data = [])
|
private function curl($url, $data = [])
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
var_dump($url);
|
||||||
$output = $this->curlParse($url, $data);
|
$output = $this->curlParse($url, $data);
|
||||||
if ($output === FALSE) {
|
if ($output === FALSE) {
|
||||||
return new Result(['code' => 500, 'message' => $output]);
|
return new Result(['code' => 500, 'message' => $output]);
|
||||||
|
|||||||
Reference in New Issue
Block a user