瀏覽代碼

modify timeout

stanley-king 7 年之前
父節點
當前提交
a925dbac94
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/framework/function/http.php

+ 1 - 1
core/framework/function/http.php

@@ -74,7 +74,7 @@ function http_post_data($url, $body, $headers = array())
     $ci = curl_init();
     curl_setopt($ci, CURLOPT_USERAGENT, 'PHP-SDK OAuth2.0');
     curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 3);
-    curl_setopt($ci, CURLOPT_TIMEOUT, 3);
+    curl_setopt($ci, CURLOPT_TIMEOUT, 15);
     curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);
     curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);