From 14bea139e9fd6b05a62b1f9d79e35f830527b694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 24 Aug 2020 11:37:59 +0800 Subject: [PATCH] add clear --- wchat/common/HttpClient.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index d3f760b..e5dbe81 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -655,9 +655,8 @@ class HttpClient { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->createRequestUrl($url, $data)); - curl_setopt($ch, CURLOPT_TIMEOUT, 60);// 超时设置 + curl_setopt($ch, CURLOPT_TIMEOUT, 120);// 超时设置 curl_setopt($ch, CURLOPT_HEADER, true); - if ($headers = $this->parseHeaderMat()) { curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); }