add clear
This commit is contained in:
@@ -220,7 +220,6 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function request($url, $data = [])
|
private function request($url, $data = [])
|
||||||
{
|
{
|
||||||
echo $url . PHP_EOL;
|
|
||||||
$data = $this->paramEncode($data);
|
$data = $this->paramEncode($data);
|
||||||
if ($this->use_swoole === false) {
|
if ($this->use_swoole === false) {
|
||||||
return $this->useCurl($url, $data);
|
return $this->useCurl($url, $data);
|
||||||
@@ -464,7 +463,9 @@ class HttpClient
|
|||||||
if ($this->method == self::POST) {
|
if ($this->method == self::POST) {
|
||||||
curl_setopt($ch, CURLOPT_POST, 1);
|
curl_setopt($ch, CURLOPT_POST, 1);
|
||||||
}
|
}
|
||||||
|
echo $url . PHP_EOL;
|
||||||
if ($this->method != self::GET) {
|
if ($this->method != self::GET) {
|
||||||
|
var_dump($this->_data);
|
||||||
if (!empty($this->_data)) {
|
if (!empty($this->_data)) {
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user