恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
 迅雷TV版在当贝应用市场独家首发恩山
查看: 463|回复: 3

[iptv信源 资源分享或寻求] 扬州台H5版代理

[复制链接]
发表于 2022-8-25 21:54 | 显示全部楼层 |阅读模式
本帖最后由 guoma 于 2022-8-26 09:33 编辑

感谢坛友jacky77提供的代码,稍作更改,分享如下:
  1. <?php
  2. $id = isset($_GET['id'])?$_GET['id']:'szws';
  3. $n = [
  4.     'cctv1' => [177512,'4387'],
  5.     'cctv1a' => [177803,'1bd65'],
  6.     'cctv1b' => [178086,'4f396'],
  7.     'cctv2' => [177714,'11ecc'],
  8.     'cctv3' => [177704,'11ef4'],
  9.     'cctv4' => [177705,'11ef0'],
  10.     'cctv5' => [177706,'11eec'],
  11.     'cctv6' => [177707,'11ee8'],
  12.     'cctv8' => [177709,'11ee0'],
  13.     'cctv10' => [177711,'11ed8'],
  14.     'cctv13' => [177603,'4e2f'],
  15.     'cctv13a' => [178087,'4f390'],
  16.     'bjws' => [177800,'1bd71'],
  17.     'dfws' => [177797,'1bd7d'],
  18.     'sdws' => [177805,'1bd5d'],
  19.     'jsws' => [177796,'1bd81'],
  20.     'zjws' => [177799,'1bd75'],
  21.     'gdws' => [177802,'1bd69'],
  22.     'szws' => [177804,'1bd61'],
  23.     'yztv1' => [235,'8bb',1],
  24.     'yztv2' => [291,'8bd',1],
  25.     'yztv3' => [236,'8bf',1],
  26.     'yzhj' => [292,'8c3',1],
  27.      ];
  28.     $t = time()*1000;
  29.     $param = md5("apiversion%3D29%26params%3DtokenchannelId".$n[$id][0]."t".$t."terminalTypeandroid%26service%3DgetChannelDetail");
  30.     $butelSign = md5("service=/setsail/external/externalService&securitykey=562db162d30884329cc2f5884b26c787&butelTst=".$t."&param=".$param);
  31.     $array = '{"token":"","channelId":'.$n[$id][0].',"t":'.$t.',"terminalType":"android"}';
  32.     $data = "service=getChannelDetail&params=".$array."&apiVersion=2.9&butelAppkey=yangfanapp&butelTst=".$t."&butelSign=".$butelSign;
  33.     if($n[$id][2]==1) {
  34.         $burl = 'http://yztv-wshls.homecdn.com/';
  35.         } else
  36.         $burl ='http://yztv-wshls.homecdn.com/live/';

  37.     $ch = curl_init();
  38.     curl_setopt($ch, CURLOPT_URL, "https://vapp.96189.com/setsail/external/externalService?".$data);
  39.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  40.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  41.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  42.     $res = curl_exec($ch);
  43.     curl_close($ch);
  44.     $flv = $burl.$n[$id][1].'.flv?'.parse_url(explode(",",json_decode($res)->data->playUrl)[0])[query];
  45.     $m3u8 =  $burl.$n[$id][1].'.m3u8?'.parse_url(explode(",",json_decode($res)->data->playUrl)[1])[query];
  46.     //header('location:'.$flv);
  47.     header('location:'.$m3u8);
  48.     //echo $flv;
  49.     //echo $m3u8;
  50. ?>
复制代码









我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-8-25 22:04 | 显示全部楼层
感谢分享~~~~
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-8-26 08:23 | 显示全部楼层
感谢分享
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-8-26 11:48 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2022-9-29 06:23

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

| 江苏省互联网有害信息举报中心 举报信箱:js12377@jschina.com.cn 举报电话:025-88802724 | 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797
快速回复 返回顶部 返回列表