add clear
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
namespace wchat\common;
|
namespace wchat\common;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
use Swoole\Coroutine\Http\Client as SClient;
|
use Swoole\Coroutine\Http\Client as SClient;
|
||||||
use Swoole\Coroutine\System;
|
use Swoole\Coroutine\System;
|
||||||
@@ -621,6 +622,9 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function curlParse($url, $data)
|
private function curlParse($url, $data)
|
||||||
{
|
{
|
||||||
|
Log::debug('qq', [$this->createRequestUrl($url, $data), $data]);
|
||||||
|
|
||||||
|
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_URL, $this->createRequestUrl($url, $data));
|
curl_setopt($ch, CURLOPT_URL, $this->createRequestUrl($url, $data));
|
||||||
curl_setopt($ch, CURLOPT_TIMEOUT, 5);// 超时设置
|
curl_setopt($ch, CURLOPT_TIMEOUT, 5);// 超时设置
|
||||||
|
|||||||
Reference in New Issue
Block a user