强调下这需要要 PHP 服务器来运行代码,奈何世人只爱鱼,不爱渔。自己动手对大部分人还是一个坎。

id频道
439湖北美嘉购物https://const.net.cn/tool/tv/hbtv.php?id=439
438湖北垄上https://const.net.cn/tool/tv/hbtv.php?id=438
437湖北教育https://const.net.cn/tool/tv/hbtv.php?id=437
436湖北生活https://const.net.cn/tool/tv/hbtv.php?id=436
435湖北影视https://const.net.cn/tool/tv/hbtv.php?id=435
434湖北公共新闻https://const.net.cn/tool/tv/hbtv.php?id=434
433湖北综合https://const.net.cn/tool/tv/hbtv.php?id=433
432湖北经视https://const.net.cn/tool/tv/hbtv.php?id=432
431湖北卫视https://const.net.cn/tool/tv/hbtv.php?id=431

代理格式举例:https://const.net.cn/tool/tv/hbtv.php?id=431

<?php
//id=439湖北美嘉购物 438湖北垄上 437湖北教育 436湖北生活 435湖北影视 434湖北公共新闻 433湖北综合 432湖北经视 431湖北卫视
//by 老伙计-laoguy.com
$id=$_GET[id];
$url = 'http://app.cjyun.org/video/player/streamlist?site_id=10008&live_type=1';
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$data=curl_exec($ch);
curl_close($ch);
for($a=0;$a<100;$a++){
    if(json_decode($data)->data[$a]->id==$id){
        $json=json_decode($data)->data[$a]->play_url;
        break;
    }
}
header('location:'.$json);
?>

Referenced from:https://laoguy.com/hbtvphp.html

本文链接地址:https://const.net.cn/235.html

标签: 电视

添加新评论