add clear
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user