Commit e8a43baf by 杨昕

test

parent 603c3bdc
Pipeline #18747 passed with stages
in 1 minute 15 seconds
...@@ -68,9 +68,9 @@ function http_request_code($url, $isHearder = null, $post = 'GET', $data = null, ...@@ -68,9 +68,9 @@ function http_request_code($url, $isHearder = null, $post = 'GET', $data = null,
//curl_setopt($ch, CURLOPT_TIMEOUT, 0); //curl_setopt($ch, CURLOPT_TIMEOUT, 0);
//设置超时时间,毫秒 //设置超时时间,毫秒
if ($timeout){ // if ($timeout){
curl_setopt($ch, CURLOPT_TIMEOUT_MS, $timeout * 1000); // curl_setopt($ch, CURLOPT_TIMEOUT_MS, $timeout * 1000);
} // }
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//执行CURL时间 //执行CURL时间
......
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