add clear
This commit is contained in:
@@ -341,7 +341,6 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function coroutine($ip, $url, $data = [])
|
private function coroutine($ip, $url, $data = [])
|
||||||
{
|
{
|
||||||
echo $ip . ':' . $url . PHP_EOL;
|
|
||||||
$client = $this->generate_client($ip, $url, $data);
|
$client = $this->generate_client($ip, $url, $data);
|
||||||
if ($client->statusCode < 0) {
|
if ($client->statusCode < 0) {
|
||||||
throw new \Exception($client->errMsg);
|
throw new \Exception($client->errMsg);
|
||||||
@@ -581,6 +580,7 @@ class HttpClient
|
|||||||
{
|
{
|
||||||
$this->setIsSSL(false);
|
$this->setIsSSL(false);
|
||||||
$this->setHeaders([]);
|
$this->setHeaders([]);
|
||||||
|
$this->setData(null);
|
||||||
|
|
||||||
if ($this->callback !== NULL) {
|
if ($this->callback !== NULL) {
|
||||||
$result = call_user_func($this->callback, $body, $_data, $header);
|
$result = call_user_func($this->callback, $body, $_data, $header);
|
||||||
|
|||||||
Reference in New Issue
Block a user