oykooo 发表于 2024-11-10 08:08:46

谢谢楼主分享

zly2008 发表于 2024-11-10 09:42:59

感谢大佬分享

ai2008 发表于 2024-11-10 10:18:12

天翼189五个不用$Cookie的频道

湘鄂情 发表于 2024-11-10 12:12:17

这个可以试试

欢乐在远方 发表于 2024-11-10 18:08:51

谢谢楼主分享

hk168168 发表于 2024-11-10 18:41:13

看看是什么

wonima 发表于 2024-11-10 19:46:13

感谢大佬分享。

880817 发表于 2024-11-10 21:58:33

<?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);
?>

zjcheng 发表于 2024-11-11 01:51:58

看看有啥好看的

s4440 发表于 2024-11-11 02:49:22

看看什么好东西

cdsqnbylwhf 发表于 2024-11-11 08:09:02

谢谢大神,感谢

金生丽水 发表于 2024-11-11 11:06:45

谢谢楼主的分享
页: 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23
查看完整版本: 天翼189五个不用$Cookie的频道代理