Commit b9c33523 by 庄欣

无反应时

parent d10758ea
...@@ -84,7 +84,7 @@ class CurlClient ...@@ -84,7 +84,7 @@ class CurlClient
curl_setopt($http,CURLOPT_URL,$this->base.$this->url); curl_setopt($http,CURLOPT_URL,$this->base.$this->url);
curl_setopt($http,CURLOPT_HEADER,false); curl_setopt($http,CURLOPT_HEADER,false);
curl_setopt($http,CURLOPT_CUSTOMREQUEST,$this->method); curl_setopt($http,CURLOPT_CUSTOMREQUEST,$this->method);
curl_setopt($http,CURLOPT_TIMEOUT ,3); curl_setopt($http,CURLOPT_TIMEOUT ,6);
if ($this->format == "JSON") if ($this->format == "JSON")
{ {
$this->header = array_merge($this->header,['Content-Type:application/json']); $this->header = array_merge($this->header,['Content-Type:application/json']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment