云听代理源码
<?phperror_reporting(0);
$id = isset($_GET['id'])?$_GET['id']:639;
$date = date('Y-m-d');
$url = "https://ytapi.radio.cn/ytsrv/srv/interactive/program/list";
$post = "startdate=&enddate={$date}&broadCastId=".$id;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER,["equipmentsource: WEB"]);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data,1);
$name = $json['broadcastName'];
$mp3 = $json['broadcastPlayUrlHighMp3'];
header("location:$mp3");
//echo $mp3;
// https://cfyy.cc/fm/fm.php?type=yt
?>
谢谢楼主的分享 谢谢分享 ID有不? 云听代理源码 [修改] 都不能使用,哪里来的源码呀?! 嗑瓜子,看直播。
页:
[1]