缺了什么参数?
本帖最后由 javon 于 2024-7-27 19:18 编辑爱看migu,此字符被系统屏蔽guoma大佬的代码:https://www.此字符被系统屏蔽/FORUM/thread-8293370-1-1.html
<?php
error_reporting(0);
$id = isset($_GET['id'])?$_GET['id']:'cctv1';
$n = [
'cctv1' => ,//CCTV-1HD
'cctv1b' => ,//CCTV-1HD2
'cctv2' => ,//CCTV-2HD
'cctv3' => ,//CCTV-3HD
'cctv4' => ,//CCTV-4HD
'cctv4o' => ,//CCTV-4欧洲
'cctv4a' => ,//CCTV-4美洲
'cctv5' => ,//CCTV-5HD
'cctv5b' => ,//CCTV-5HD2
'cctv5p' => ,//CCTV-5+HD
'cctv5p2' => ,//CCTV-5+HD2
'cctv6' => ,//CCTV-6HD
'cctv7' => ,//CCTV-7HD
'cctv8' => ,//CCTV-8HD
'cctv9' => ,//CCTV-9HD
'cctv10' => ,//CCTV-10HD
'cctv11' => ,//CCTV-11HD
'cctv12' => ,//CCTV-12HD
'cctv13' => ,//CCTV-13HD
'cctv14' => ,//CCTV-14HD
'cctv15' => ,//CCTV-15HD
'cctv17' => ,//CCTV-17HD
'cgtne' => ,//CGTN西语
'cgtna' => ,//CGTN阿语
'chcjtyy' => ,//CHC家庭影院
'bjws' => ,//北京卫视HD,
'dfws' => ,//东方卫视HD
'dfws2' => ,//东方卫视HD2
'cqws' => ,//重庆卫视
'jlws' => ,//吉林卫视
'lnws' => ,//辽宁卫视HD
'nmws' => ,//内蒙古卫视
'nxws' => ,//宁夏卫视
'gsws' => ,//甘肃卫视
'qhws' => ,//青海卫视
'sxws' => ,//陕西卫视HD
'sdws' => ,//山东卫视HD
'hubws' => ,//湖北卫视HD
'hunws' => ,//湖南卫视HD
'jxws' => ,//江西卫视HD
'jsws' => ,//江苏卫视HD
'gdws' => ,//广东卫视HD,
'gdws2' => ,//广东卫视HD2,
'dwqws' => ,//大湾区卫视
'scws' => ,//四川卫视HD
'xjws' => ,//新疆卫视
'xzws' => ,//西藏卫视
'hinws' => ,//海南卫视
'shdy' => ,//四海钓鱼
'jsjy' => ,//江苏教育
'sdjy' => ,//山东教育卫视
'yxfy' => ,//游戏风云HD
'hxjc' => ,//欢笑剧场4K
'dfgw' => ,//东方购物
'zjjl' => ,//之江纪录
'hzzh' => ,//杭州综合
'hzmz' => ,//杭州明珠
'hzsh' => ,//杭州生活
'hzys' => ,//杭州影视
'hzse' => ,//杭州少儿体育
];
$port = rand(7100, 7150);
$post = '{"terminalType":"AndroidPhone","loginType":"3"}';
$url = "http://vsc.aikan.miguvideo.com:{$port}/EPG/VPE/PHONE/Authenticate";
$d = get($url,[],$post);
$sessionID = json_decode($d) -> sessionID;
$pdata = '{"businessType":"BTV","channelID":"'.$n[$id].'","mediaID":"'.$n[$id].'"}';
$uri = "http://vsc.aikan.miguvideo.com:{$port}/VSP/V3/PlayChannel";
$data = get($uri,['Cookie: JSESSIONID='.$sessionID],$pdata);
$playurl = json_decode($data)->playURL;
header ('location:'.$playurl);
//echo $playurl;
function get($url,$h,$post){
$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_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER,$h);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
?>
测试可以取得sessionID,但是获取不到playURL,是缺少了什么参数呢?
抓包截图如下:
原来是可以通过$playurl = json_decode($data)->playURL获取到地址,调整后$data内容加密了,不清楚最终地址是否就在加密内容中。
并不是缺少参数获取不到url,而是方法变了。 好像这个php早就已经失效了吧 端口 端口 端口 太高端了太高端了太高端了太高端了太高端了太高端了太高端了太高端了太高端了太高端了太高端了太高端了 {"result":{"retMsg":"content 265183188 authorize success.because product is free authorize.,platform authorize:content 265183188 authorize success.because product is free authorize.","retCode":"146021000"},"authorizeResult":{"productID":"1000000201","isLocked":"-1","isParentControl":"-1"}}
页:
[1]