hxp
2024-10-31 402ed2e6a90a785d2fce3eca23cd324f350d54c5
Common/CommFunc.php
@@ -730,7 +730,7 @@
}
#进行post请求
function DoPost($url, $post, $passSession = false)
function DoPost($url, $post, $passSession = false, $timeout=30)
{
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $url);
@@ -739,7 +739,7 @@
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_HEADER, false);
   curl_setopt($ch, CURLOPT_TIMEOUT, 30);
   curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
   if ($passSession) {
      curl_setopt($ch, CURLOPT_COOKIE, 'PHPSESSID=' . $_COOKIE['PHPSESSID']);
   }