Commit e8b305c5 by yf60144

添加获取永久m3u8链接

parent 2fb1aac2
Pipeline #13854 passed with stages
in 40 seconds
......@@ -908,7 +908,6 @@ class MediaModel extends Eloquent
* @throws DatabaseException
*/
public static function getMediaForeverM3u8($request){
var_dump("sdfsdf");
try{
$media_id = $request->media_id;
......@@ -927,7 +926,6 @@ class MediaModel extends Eloquent
}
$url = getRbac($request,'video/info',$media_id ,$type='play_m3u8');
return $url;
echo $url;
$res = http_request_code($url,null,'GET');
......@@ -935,8 +933,6 @@ class MediaModel extends Eloquent
$result = json_decode($res,true);
var_dump($result);
if ($result['code'] != 0){
LogModel::addlog($result);
throw new \Exception("获取数据失败");
......
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