找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 896|回复: 4

[iptv信源 资源分享或寻求] 求复活下南通的php代理!十分感激!

[复制链接]
发表于 2021-6-4 19:34 | 显示全部楼层 |阅读模式
南通电视台,江海明珠网,代理失效,求大神修复!
官方网址:https://www.ntjoy.com/jianghaimingzhu/dianshi/

<?php
$id=$_GET[id];
$ids = array(
"zh"=>"5e5d857d607dcc56016087facd760098",//南通一套新闻综合频道
"sj"=>"5e5d857d607dcc56016087fa8f3e0095",//南通二套社教频道
"gg"=>"5e5d857d607dcc56016087fa535a0092",//南通三套公共频道
"ly"=>"5e5d857d607dcc56016087f996ca008c",//崇川TV
);
$time = explode(".",microtime(true));
$time = $time[0].substr($time[1],0,3);
$param = md5(urlencode("apiversion=20&#182;ms=id".$ids[$id]."&service=getBroadcastChannel"));
$sign = md5("service=/bms/external/externalService&securitykey=".md5("881be42fcf4a4ab0981d3035a74d1ce7")."&butelTst=".$time."&#182;m=".$param);
$info = array(
"id" => $ids[$id],
);
$body = "service=getBroadcastChannel&#182;ms=".urlencode(json_encode($info))."&apiVersion=2.0&butelAppkey=h5&butelTst=".$time."&butelSign=".$sign;
$url = "https://api.nttv.cn/bms/external/externalService";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
$result = curl_exec($ch);
curl_close($ch);
$playurl = explode(',',json_decode($result)->data->playUrl);
header('location:'.$playurl[1]);
?>



我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-6-4 20:21 | 显示全部楼层
哪个牛人写的 一般人写不出
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-4 20:29 | 显示全部楼层
这个 没失效,可以用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本站网友
本站网友  发表于 2021-6-4 20:57
  1. <?php
  2. $id=$_GET[id];
  3. $ids = array(
  4. "zh"=>"5e5d857d607dcc56016087facd760098",//南通一套新闻综合频道
  5. "sj"=>"5e5d857d607dcc56016087fa8f3e0095",//南通二套社教频道
  6. "gg"=>"5e5d857d607dcc56016087fa535a0092",//南通三套公共频道
  7. "ly"=>"5e5d857d607dcc56016087f996ca008c",//崇川TV
  8. );
  9. $time = explode(".",microtime(true));
  10. $time = $time[0].substr($time[1],0,3);
  11. $param = md5(urlencode("apiversion=20&#182;ms=id".$ids[$id]."&service=getBroadcastChannel"));
  12. $sign = md5("service=/bms/external/externalService&securitykey=".md5("881be42fcf4a4ab0981d3035a74d1ce7")."&butelTst=".$time."&#182;m=".$param);
  13. $info = array(
  14. "id" => $ids[$id],
  15. );
  16. $body = "service=getBroadcastChannel&#182;ms=".urlencode(json_encode($info))."&apiVersion=2.0&butelAppkey=h5&butelTst=".$time."&butelSign=".$sign;
  17. $url = "https://api.nttv.cn/bms/external/externalService";
  18. $ch = curl_init();
  19. curl_setopt($ch, CURLOPT_URL, $url);
  20. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  21. curl_setopt($ch, CURLOPT_POST, 1);
  22. curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
  23. $result = curl_exec($ch);
  24. curl_close($ch);
  25. $playurl = explode(',',json_decode($result)->data->playUrl);
  26. header('location:'.$playurl[1]);
  27. ?>
复制代码


回复

使用道具 举报

 楼主| 发表于 2021-6-5 09:07 | 显示全部楼层
酷酷的裤头 发表于 2021-6-4 20:29
这个 没失效,可以用

大神 这个要什么版本的php呀?我之前能用的 现在用不了,可能是环境不一样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-17 07:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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