Commit 58e20e4c by 杨昕

test

parent e8a43baf
Pipeline #18748 passed with stages
in 1 minute 14 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时间
......
...@@ -1107,7 +1107,7 @@ class MediaModel extends Eloquent ...@@ -1107,7 +1107,7 @@ class MediaModel extends Eloquent
$url = $playbackUrl."/api/v1/vodRecordInfo"; $url = $playbackUrl."/api/v1/vodRecordInfo";
LogModel::addlog(["第三方获取媒资 screenshot 请求路径"=>$url,"请求参数"=>$data,"请求头"=>$header]); LogModel::addlog(["第三方获取媒资 screenshot 请求路径"=>$url,"请求参数"=>$data,"请求头"=>$header]);
$res = http_request_code($url,$header,'POST',$data,10); $res = http_request_code($url,$header,'POST',$data,15);
$result = json_decode($res,true); $result = json_decode($res,true);
LogModel::addlog(["第三方获取媒资 screenshot 数据"=>$res,"请求路径"=>$url,"请求参数"=>$data,"请求头"=>$header]); LogModel::addlog(["第三方获取媒资 screenshot 数据"=>$res,"请求路径"=>$url,"请求参数"=>$data,"请求头"=>$header]);
$item = array(); $item = array();
......
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