laozhongjiyule 发表于 2024-8-2 08:40:38

谢谢🙏分享

侠客126 发表于 2024-8-2 08:43:50

看看是啥好东西

mm6688 发表于 2024-8-2 08:44:22

这个能用多久

seasky 发表于 2024-8-2 08:48:51

<?php error_reporting(0); $id = $_GET['id']??'cctv2'; $q = $_GET['q']??'1';//1,蓝光;4,超清;8,高清 $n = [   'cctv1' => ['11200132825562653886','0916dc838fce69425b9aed6d3e790f49'],//CCTV1   'cctv2' => ['12030532124776958103','102ebab86b52dcb7d437aa64cac55223'],//CCTV2   'cctv4' => ['10620168294224708952','bbb5af21098ef891310f3e95aca7eaa0'],//CCTV4   'cctv13' => ['16265686808730585228','563e1000aabda6bdda96248302d34051'],//CCTV13   ]; $t =time(); $w = "&&&20000009&{$n[$id]}&{$t}&emas.feed.article.live.detail&1.0.0&&&&&"; $k = "emasgatewayh5"; $sign = hash_hmac('sha256', $w, $k); $url = "https://emas-api.cctvnews.cctv.com/h5/emas.feed.article.live.detail/1.0.0?articleId={$n[$id]}&scene_type=6"; $h = [      'x-emas-gw-appkey: 20000009',      'x-emas-gw-pv: 6.1',      'x-emas-gw-sign:' .$sign,      'x-emas-gw-t:' .$t,      ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HTTPHEADER,$h); $data = curl_exec($ch); curl_close($ch); $response = json_decode(base64_decode(json_decode($data,1)['response']),1); $playurl = $response['data'] ['live_room']['liveCameraList']['pullUrlList'][$q]['authResultUrl']['authUrl']; header('location:'.$playurl); //print_r($playurl); ?>

XXHHJCC 发表于 2024-8-2 09:07:33

php又来啦哈哈

wonima 发表于 2024-8-2 09:27:50

感谢楼主分享

gankehe 发表于 2024-8-2 09:44:32

看看吧,是什么呢?

shilong 发表于 2024-8-2 10:03:33

TV币购买VIP会员,免回复看贴等权限

lyke 发表于 2024-8-2 10:24:02

cctv.php(算法版本)

bjdanny 发表于 2024-8-2 10:36:36

看看是啥好东西

ryan 发表于 2024-8-2 10:38:37

大神出手,牛

starylw 发表于 2024-8-2 10:58:43

谢谢楼主分享好东西!!
页: 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 15 16 17 18 19 20
查看完整版本: cctv.php(算法版本)