请选择 进入手机版 | 继续访问电脑版

91看电视交流论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 259|回复: 8

广东肇庆怀集动态源,求大神寫代理

[复制链接]

6

主题

0

好友

345

积分

中级会员

Rank: 3Rank: 3

3中级会员
345/500
发表于 2017-12-5 02:00:34 来自手机 |显示全部楼层
本帖最后由 nigelmusic 于 2017-12-5 02:02 编辑

http://gdhj.chinashadt.com:8030/epgmanager/servlet/LiveServlet?interface=getChannel

22

主题

1

好友

4725

积分

钻石会员

Rank: 8Rank: 8

8钻石会员
4725/10000
发表于 2017-12-5 14:20:46 |显示全部楼层
{"msg":"成功获取数据!","obj":[{"catId":"49ff90a0-23fd-4100-b6ef-a08566c69e38","channelList":[{"chaId":"dd273d68-df68-48af-a564-1850c93002ee","description":"","isDelete":0,"itemVo":{},"name":"怀集综合","path":"sources/zb/20170829/huaijitaibiao.png","sort":2,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/1.stream/playlist.m3u8?myTokenPrefixCustomParameter=51&myTokenPrefixendtime=1512541233&myTokenPrefixhash=yNikzBmK0cyqpstdyWxfrdYAxVpN5neyqpMFO7q6w54="},{"chaId":"7cfedcc9-813e-4a46-8d9e-ce87ad648220","description":"","isDelete":0,"itemVo":{},"name":"肇庆综合","path":"sources/zb/20171114/zhaoqingzonghe1.jpg","sort":3,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/3.stream/playlist.m3u8?myTokenPrefixCustomParameter=250&myTokenPrefixendtime=1512541233&myTokenPrefixhash=28UiSODZRuk5RYRYQ0swb8Kju1FhBiRKxYJIQB7Y-6k="}],"description":"","icon":"","isDelete":0,"name":"本地台","sort":1,"status":0,"type":0},{"catId":"26638f63-237d-4d52-a9b1-b054cd3bfdfe","channelList":[{"chaId":"561e26a2-ba48-4c9a-bbe0-452dcc209c28","description":"","isDelete":0,"itemVo":{},"name":"湖南卫视","path":"sources/zb/20171114/hunantaitubiao.jpg","sort":1,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/2.stream/playlist.m3u8?myTokenPrefixCustomParameter=318&myTokenPrefixendtime=1512541233&myTokenPrefixhash=8ZtBErXI8NGr7JxV55-AI6YwBFDZ43Ep5fLBieWNOnc="},{"chaId":"34cdd15b-73ab-4cb5-886c-8ef7d0bbfb0f","description":"","isDelete":0,"itemVo":{},"name":"广东公共","path":"sources/zb/20171101/gonggongtubiao.jpg","sort":4,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/4.stream/playlist.m3u8?myTokenPrefixCustomParameter=140&myTokenPrefixendtime=1512541233&myTokenPrefixhash=ZWvQXmkkrYOTz307d73bxnMXnwFDW_IXIhVDIoLGsj8="},{"chaId":"9143bb0f-1b68-497f-84a7-b232446a02ee","description":"","isDelete":0,"itemVo":{},"name":"广东体育","path":"sources/zb/20171101/tiyutubiao.jpg","sort":5,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/5.stream/playlist.m3u8?myTokenPrefixCustomParameter=48&myTokenPrefixendtime=1512541233&myTokenPrefixhash=EQ1pr93_qvj_aw-PUUCvXu7wJAtdMrstpG51zZvSzJ8="},{"chaId":"856210e7-1600-4e21-b00c-e283e0d2ab3c","description":"","isDelete":0,"itemVo":{},"name":"广东珠江","path":"sources/zb/20171101/zhujiangtubiao.jpg","sort":6,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/6.stream/playlist.m3u8?myTokenPrefixCustomParameter=839&myTokenPrefixendtime=1512541233&myTokenPrefixhash=MQBMogLvponijyjpzkrt3htG-l14rBKVXeHJDb3nJNY="},{"chaId":"2cb2988e-ad5e-481b-a24d-8f5338989375","description":"","isDelete":0,"itemVo":{},"name":"TVS-1","path":"sources/zb/20171114/TVS1.jpg","sort":7,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/7.stream/playlist.m3u8?myTokenPrefixCustomParameter=307&myTokenPrefixendtime=1512541233&myTokenPrefixhash=VlP08pZbx1DD8NyPnpN7HV5MFqT9MVVfCPy5YbLT4aA="}],"description":"","icon":"","isDelete":0,"name":"卫视台","sort":2,"status":0,"type":0},{"catId":"3473a5ea-aa69-4981-a546-85c62aa4ab21","channelList":[{"chaId":"95106ccb-eaf0-42c1-bfae-4eb46d2a2192","description":"","isDelete":0,"itemVo":{},"name":"电台广播","path":"sources/zb/20171122/diantai.jpg","sort":8,"status":0,"url":"http://gdhj.chinashadt.com:2036/live/8.stream/playlist.m3u8?myTokenPrefixCustomParameter=549&myTokenPrefixendtime=1512541233&myTokenPrefixhash=4NDyzRAq-TXBVMCu04os92Xxbb3MNoZ0GhBkaOnUCnk="}],"description":"","icon":"","isDelete":0,"name":"怀集广播","sort":3,"status":0,"type":1}],"success":true}
回复

使用道具 举报

6

主题

0

好友

345

积分

中级会员

Rank: 3Rank: 3

3中级会员
345/500
发表于 2017-12-5 16:14:22 来自手机 |显示全部楼层
youmzhang 发表于 2017-12-5 14:20
{"msg":"成功获取数据!","obj":[{"catId":"49ff90a0-23fd-4100-b6ef-a08566c69e38","channelList":[{"chaI ...

不懂寫php,求助
回复

使用道具 举报

157

主题

3

好友

7693

积分

超级版主

Rank: 10Rank: 10Rank: 10

发表于 2017-12-5 16:30:31 |显示全部楼层
  1. <?php
  2. $id=$_REQUEST['id'];
  3. $ids=array(
  4.         "gdzqhj1"=>"dd273d68-df68-48af-a564-1850c93002ee",
  5.         "gdzqtv1"=>"7cfedcc9-813e-4a46-8d9e-ce87ad648220",
  6.         "hnws"=>"561e26a2-ba48-4c9a-bbe0-452dcc209c28",
  7.         "gdgg"=>"34cdd15b-73ab-4cb5-886c-8ef7d0bbfb0f",
  8.         "gdty"=>"9143bb0f-1b68-497f-84a7-b232446a02ee",
  9.         "gdzj"=>"856210e7-1600-4e21-b00c-e283e0d2ab3c",
  10.         "gdtvs1"=>"2cb2988e-ad5e-481b-a24d-8f5338989375",
  11. );
  12. $url="http://gdhj.chinashadt.com:8030/epgmanager/servlet/LiveServlet?interface=getChannel";
  13. $info=file_get_contents($url);
  14. $info1=json_decode($info);
  15. if($id=="gdzqhj1"||$id=="gdzqtv1"){
  16.         $channelList=$info1->obj[0]->channelList;
  17.         foreach($channelList as $list1){
  18.                 $chaId=$list1->chaId;
  19.                 $liveurl=$list1->url;
  20.                 if($chaId==$ids[$id]){
  21.                         header('location:'.$liveurl);
  22.                 }
  23.         }
  24. }else{
  25.         $channelList=$info1->obj[1]->channelList;
  26.         foreach($channelList as $list1){
  27.                 $chaId=$list1->chaId;
  28.                 $liveurl=$list1->url;
  29.                 if($chaId==$ids[$id]){
  30.                         header('location:'.$liveurl);
  31.                 }
  32.         }
  33. }
  34. ?>
复制代码
回复

使用道具 举报

5#
无效楼层,该帖已经被删除

4

主题

1

好友

1万

积分

论坛元老

Rank: 10Rank: 10Rank: 10

发表于 2017-12-5 20:43:17 |显示全部楼层
来个简单的

<?php
$id=$_GET["id"];
$ids=array(
        "gdzqhj1"=>"0",
        "gdzqtv1"=>"1",
        "hnws"=>"2",
        "gdgg"=>"3",
        "gdty"=>"4",
        "gdzj"=>"5",
        "gdtvs1"=>"6",
);
$url="http://gdhj.chinashadt.com:8030/epgmanager/servlet/LiveServlet?interface=getChannel";
$info=file_get_contents($url);
preg_match_all('/url":"(.*?)"/i',$info,$m);
$live=$m[1][$ids[$id]];
header('location:'.$live);
?>

调用xxx.php?id=gdty   /hnws/ ............
回复

使用道具 举报

0

主题

0

好友

578

积分

高级会员

Rank: 4

4高级会员
578/1000
发表于 2017-12-5 21:38:50 |显示全部楼层
你这个http://gdhj.chinashadt.com:8030/epgmanager/servlet/LiveServlet?interface=getChannel是怎么获得的
回复

使用道具 举报

6

主题

0

好友

345

积分

中级会员

Rank: 3Rank: 3

3中级会员
345/500
发表于 2017-12-6 10:52:58 |显示全部楼层
本帖最后由 nigelmusic 于 2017-12-6 16:40 编辑
junjun 发表于 2017-12-5 16:30

本地能用, 感谢大神帮助!!

不过在网页空间就出现两个问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

回复

使用道具 举报

6

主题

0

好友

345

积分

中级会员

Rank: 3Rank: 3

3中级会员
345/500
发表于 2017-12-6 10:59:07 |显示全部楼层
LEDE 发表于 2017-12-5 21:38
你这个http://gdhj.chinashadt.com:8030/epgmanager/servlet/LiveServlet?interface=getChannel是怎么获得 ...


掌上怀集再捉包

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

回复

使用道具 举报

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



91看电视|联系我们|赞助论坛|积分规则|申请友链|91看电视4群

Archiver|手机版|91看电视

GMT+8, 2017-12-18 07:12 , Processed in 0.030754 second(s), 28 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc. 站长论坛

回顶部