找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 17825|回复: 579

[iptv信源 资源分享或寻求] 长江云代理更新(20220122)

 火... [复制链接]
发表于 2023-1-22 15:55 | 显示全部楼层 |阅读模式
本帖最后由 guoma 于 2023-1-22 16:00 编辑

cjy.php:

  1. <?php
  2. error_reporting(0);
  3. header('Content-Type: text/json;charset=UTF-8');
  4. $id = isset($_GET['id'])?$_GET['id']:'hbws';
  5.    $n = [
  6.    'hbws' => 431, //湖北卫视
  7.    'hbjs' => 432, //湖北经视
  8.    'hbzh' => 433, //湖北综合
  9.    'hbgg' => 434, //湖北公共新闻
  10.    'hbys' => 435, //湖北影视
  11.    'hbsh' => 436, //湖北生活
  12.    'hbjy' => 437, //湖北教育
  13.    'hbls' => 438, //湖北垄上
  14.    ];
  15.    $m = [
  16.    //襄阳
  17.    'xyzh' => ['https://xiangyang-live21.cjyun.org/10125/','s10125-news_hd.m3u8?auth_key=1704038399-0-0-5f0b690930d9e5a9bb24fdfa48e962a2'], //襄阳综合
  18.    'xysh' => ['https://xiangyang-live21.cjyun.org/10125/','s10125-society_hd.m3u8?auth_key=1704038399-0-0-e243613af01160585a99833143ff9c51'], //襄阳经济生活
  19.    'xygg' => ['https://xiangyang-live21.cjyun.org/10125/','s10125-education_hd.m3u8?auth_key=1704038399-0-0-4a3c217a78253817ef6f3ee49deb4e3d'], //襄阳公共
  20.    //黄冈
  21.    'wxzh' => ['http://wuxue-live21.cjyun.org/10107/','s10107-wxtv1.m3u8?auth_key=1704038399-0-0-6ff79a46f5fe722ce9cec632b60734fd'], //武穴综合
  22.    'ltzh' => ['http://luotian-live21.cjyun.org/10013/','s10013-LTZH.m3u8?auth_key=1704038399-0-0-044f45c7681336a875438ced5cbcce1d'],//罗田综合
  23.    'ltly' => ['http://luotian-live21.cjyun.org/10013/','s10013-LTLY.m3u8?auth_key=1704038399-0-0-1e7519816ec0be466be474277da0b617'],//罗田旅游
  24.    'qczh' => ['http://qichun-live21.cjyun.org/10126/','s10126-TC1T.m3u8?auth_key=1704038399-0-0-e6ed2c5372b3865cfb7e630c40d7cbd8'], //蕲春综合
  25.    'qclyys' => ['http://qichun-live21.cjyun.org/10126/','s10126-TC2T.m3u8?auth_key=1704038399-0-0-46594d533ae35bab897d759c6146c554'], //蕲春旅游养生
  26.    //恩施
  27.    'eszh' => ['http://enshi-live21.cjyun.org/10070/','s10070-eszh.m3u8?auth_key=1704038399-0-0-401a464342af6e7342bcfe2d85793aa2'], //恩施综合
  28.    'eswl' => ['http://enshi-live21.cjyun.org/10070/','s10070-esgg.m3u8?auth_key=1704038399-0-0-8ee4403d1adad763d2bf71f1658846ae'], //恩施文旅
  29.    //十堰
  30.    'djkzh' => ['http://danjiangkou-live21.cjyun.org/10081/','s10081-djktv1.m3u8?auth_key=1704038399-0-0-b0826c4a8adaaf45c751055dff918b4a'], //丹江口综合
  31.    ];
  32. $r = 'http://app.cjyun.org/';

  33. if(!!$n[$id]) {
  34. if (empty($_GET['ts'])){
  35.      $d = file_get_contents('http://app.cjyun.org/video/player/stream?site_id=10008&stream_id='.$n[$id]);
  36.      $json = json_decode($d);
  37.      $url = $json->stream;
  38.      print_r(preg_replace("/(.*?.ts)/i", (isset($_SERVER["HTTPS"])&&$_SERVER["HTTPS"]==="on"?"https":"http")."://$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]?ts=http://live21-cjy.hbtv.com.cn/hbtv/$1",getdata($url,$r)));
  39.      }
  40.      else{
  41.          $ts = getdata($_GET['ts'],$r);
  42.          echo $ts;
  43.          }

  44.     }

  45. if(!!$m[$id]) {
  46. if (empty($_GET['ts'])){
  47.    print_r(preg_replace("/(.*?.ts)/i",(isset($_SERVER["HTTPS"])&&$_SERVER["HTTPS"]==="on"?"https":"http")."://$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]?ts={$m[$id][0]}$1",getdata($m[$id][0].$m[$id][1],$r)));
  48. } else {
  49.    $ts = getdata($_GET['ts'],$r);
  50.    echo $ts;
  51. }}

  52. function getdata($url,$ref){
  53.        $ch = curl_init($url);
  54.        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  55.        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  56.        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  57.        curl_setopt($ch, CURLOPT_REFERER, $ref);
  58.        $res = curl_exec($ch);
  59.        curl_close($ch);
  60.        return $res;
  61. }
  62. ?>
复制代码

我的恩山、我的无线 The best wifi forum is right here.
发表于 2023-1-22 15:56 | 显示全部楼层
大佬又出手了,感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 15:57 | 显示全部楼层

大佬又出手了,感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:02 | 显示全部楼层
感谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:02 来自手机 | 显示全部楼层
路过前来看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:02 | 显示全部楼层
大佬又出手了,感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:03 | 显示全部楼层
#在这里 大佬又出手了,感谢!快速回复#
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:03 | 显示全部楼层
感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:05 | 显示全部楼层
看看怎么样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:06 | 显示全部楼层
是卡卡卡卡
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:06 | 显示全部楼层
谢谢分享,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:07 | 显示全部楼层

大佬又出手了,感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:08 来自手机 | 显示全部楼层
看看这个可以吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:08 来自手机 | 显示全部楼层
支持楼主
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-1-22 16:08 | 显示全部楼层
谢谢分享谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 09:09

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表