Commit 50d46d0e by 朱继来

超时时间设置

parent 9ddefb4c
Showing with 2 additions and 2 deletions
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
if(!function_exists('curl_init')) exit('Need to open the curl extension'); if(!function_exists('curl_init')) exit('Need to open the curl extension');
$method = strtoupper($method); $method = strtoupper($method);
$ci = curl_init(); $ci = curl_init();
curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 3); curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ci, CURLOPT_TIMEOUT, 3); curl_setopt($ci, CURLOPT_TIMEOUT, 10);
curl_setopt($ci, CURLOPT_RETURNTRANSFER, true); curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);
......
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 sign in to comment