本帖最后由 guoma 于 2020-11-12 15:40 编辑
楼主看看,这样写行吗:
$id=$_GET['id'];
$ids = array(
'cctv1'=>'cctv1hd_2000',
'cctv2'=>'cctv2hd_2000',
'cctv3'=>'cctv3hd_2000',
'cctv4'=>'cctv4hd_2000',
'cctv5'=>'cctv5hd_2000',
'cctv5p'=>'cctv5plushd_2000',
'cctv6'=>'cctv6hd_2000',
'cctv7'=>'cctv7hd_2000',
'cctv8'=>'cctv8hd_2000',
'cctv9'=>'cctv9hd_2000',
'cctv10'=>'cctv10_1200',
'cctv11'=>'cctv11hd_2000',
'cctv12'=>'cctv12hd_2000',
'cctv13'=>'cctv13_1200',
'cctv14'=>'cctv14_2000',
'cctv15'=>'cctv15_2000',
'cctv17'=>'cctv17_2000',
'bjws'=>'bjwshd_2000',
'dfws'=>'dfwshd_2000',
'tjws'=>'tjwshd_2000',
'hljws'=>'hljwshd_2000',
'lnws'=>'lnwshd_2000',
'sdws'=>'sdwshd_2000',
'ahws'=>'ahwshd_2000',
'hubws'=>'hbwshd_2000',
'hunws'=>'hnwshd_2000',
'jxws'=>'jxwshd_2000',
'jsws'=>'jswshd_2000',
'zjws'=>'zjwshd_2000',
'dnws'=>'dnwshd_2000',
'xmws'=>'xm1_1200',
'gdws'=>'gswshd_2000',
'szws'=>'szwshd_2000',
'gzws'=>'gzwshd_2000',
'ssws'=>'ssws_1200',
'chcgq'=>'chchd_2000',
'chcjt'=>'chcjthd_2000',
'chcdz'=>'chcdzhd_2000',
'fjzh'=>'fj1_1200',
'fjds'=>'dspd_1200',
'fjdsj'=>'fjdsj_1200',
'fjxw'=>'fjxwhd_2000',
'fzzh'=>'fz1hd_1500',
'fzys'=>'fz2_1200',
'fzsh'=>'fz3_1200',
'fzse'=>'fz4_1200',
'xm1'=>'xm1hd_2000',
'xm2'=>'xm2hd_2000',
'xm3'=>'xm3hd_2000',
'qz1'=>'qz1_1200',
'qz2'=>'qz2_1200',
'qz3'=>'qz3_1200','qz4'=>'qz4_1200',
'zz1'=>'zz1_1200',
'zz2'=>'zz2_1200',
'pt1'=>'ptian1_1200',
'pt2'=>'ptian2_1200',
'nd1'=>'nd1_1200',
'nd2'=>'nd2_1200',
'np1'=>'np1_1200',
'np2'=>'np2_1200',
'sm1'=>'sm1_1200',
'lyzh'=>'ly1_1200',
'ptzh'=>'ptan1_1200',
'jjstv'=>'jjdsthd_2000',
'jykt'=>'jykthd_2000',
'fhzw'=>'fhzwhd_2000',
'fhzx'=>'fhzxhd_2000'
);
$url = 'http://www.setvn.com/plus/ajax.php?myaction=getplayurl&aid=1174&programID=&channelID=304&mynonce=653a00c5562fa2c16c3f7e2c3bc2c115';
$token = file_get_contents($url);
$p_url = 'http://gslb.aj.setvn.com:8070/live/'.$ids[$id].'.m3u8?'.$token;
header('Location: '.$p_url);
?>