86 发表于 2023-10-30 14:03:34

云听代理源码

<?php
error_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
?>

金生丽水 发表于 2023-10-30 16:17:19

谢谢楼主的分享

diewuyichi 发表于 2023-10-30 17:23:16

谢谢分享

smsx 发表于 2023-10-30 19:06:17

ID有不?

dajigan 发表于 2023-10-31 21:15:56

云听代理源码 [修改]

huayin 发表于 2023-11-29 22:29:20

都不能使用,哪里来的源码呀?!

easy2003 发表于 2024-2-17 14:01:58

嗑瓜子,看直播。
页: [1]
查看完整版本: 云听代理源码