add clear

This commit is contained in:
2020-05-21 17:03:32 +08:00
parent 83a86a2a57
commit 296086a7ae
+4
View File
@@ -3,6 +3,7 @@
namespace wchat\common;
use Exception;
use Illuminate\Support\Facades\Log;
use Swoole\Coroutine;
use Swoole\Coroutine\Http\Client as SClient;
use Swoole\Coroutine\System;
@@ -621,6 +622,9 @@ class HttpClient
*/
private function curlParse($url, $data)
{
Log::debug('qq', [$this->createRequestUrl($url, $data), $data]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this->createRequestUrl($url, $data));
curl_setopt($ch, CURLOPT_TIMEOUT, 5);// 超时设置