From 296086a7ae48bdf5f40f1b110fdb78b0e72ed35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 21 May 2020 17:03:32 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 314bf33..f36e633 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -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);// 超时设置