福建海博代理源

<?php
$id = $_GET['id']; 
$bstrURL = 'https://mapi-plus.fjtv.net/api/v1/channel.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $bstrURL); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data);
$url = $json[$id]->m3u8;
header('location:'.$url);
?>
© 版权声明
THE END
喜欢就支持以下吧
点赞0
分享
评论 抢沙发

请登录后发表评论