触电代理求助
本帖最后由 guoma 于 2024-7-2 20:44 编辑下面的代码只能得到加密线路,不知缺少什么参数,请坛里大师指教:
<?php
error_reporting(0);
$id = isset($_GET['id'])?$_GET['id']:'gdws';
$n = [
'gdws' => 1182, //广东卫视
];
$url = "https://api.itouchtv.cn:8090/liveservice/v3/tvChannelList";
$ts = time();
$key = "HGXimfS2hcAeWbsCW19JQ7PDasYOgg1lY2UWUDVX8nNmwr6aSaFznnPzKrZ84VY1";
$sign = base64_encode(hash_hmac("SHA256","GET\n$url\n$ts\n",$key,1));
$h = [
"X-ITOUCHTV-Ca-Key:28778826534697375418351580924221",
"X-ITOUCHTV-CLIENT: ews_APP",
"X-ITOUCHTV-Ca-Signature:$sign",
"X-ITOUCHTV-Ca-Timestamp:$ts",
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $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,$h);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data,1);
$j=0;
foreach($json['tvChannelList'] as $v){
if($id == ''){
echo $j++.','.$v['name'].','.$v['pk']."\n";
} else {
if($n[$id]==$v['pk']){
$playurl = $v['url'];
header("location:".$playurl);
echo $playurl;
}
}
}
?> chenanan 发表于 2024-7-9 19:48
触电又恢复了,wjxgzz大神那个可以看了
$bstrURL = "https://api.itouchtv.cn/liveservice/v3/tvChannelList?fromSource=wxapp&node=$node";
"X-ITOUCHTV-CLIENT: WX_APP",
就改2处 触电又恢复了,wjxgzz大神那个可以看了 帮不到,只能打卡支持一下,大佬,加油 苹果手机容易抓包,安卓APP基本都限制了V P N连接。 帮顶,,,,,, 帮顶,,,,,, 帮不到,只能打卡支持一下,大佬,加油 水平不够,只能围观一下。 大佬搞不定的事,我们也没有办法的
水平不够,只能围观一下。 帮顶,希望能解决 帮顶,,,,,,
页:
[1]
2