add clear

This commit is contained in:
as2252258@163.com
2020-03-16 19:28:29 +08:00
parent 350016e83a
commit def9dbb297
+2 -1
View File
@@ -220,7 +220,6 @@ class HttpClient
*/
private function request($url, $data = [])
{
echo $url . PHP_EOL;
$data = $this->paramEncode($data);
if ($this->use_swoole === false) {
return $this->useCurl($url, $data);
@@ -464,7 +463,9 @@ class HttpClient
if ($this->method == self::POST) {
curl_setopt($ch, CURLOPT_POST, 1);
}
echo $url . PHP_EOL;
if ($this->method != self::GET) {
var_dump($this->_data);
if (!empty($this->_data)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);
} else {