add clear

This commit is contained in:
2021-04-06 15:28:44 +08:00
parent 589b92c152
commit 523ee91797
+1 -1
View File
@@ -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]);