最近很火的短剧接口
最近发现短剧需求挺大,搭建了短剧站并且抓到了接口,大家可以自行调成想要的返回格式<?php
header("Access-Control-Allow-Origin: *"); // 允许跨域请求
if(isset($_GET['act'])) {
$act = $_GET['act'];
if($act == 'yingshilist') {
$url = 'http://www.v60s.top/tvapi?act=yingshilist';
} elseif($act == 'search') {
if(isset($_GET['name'])) {
$name = urlencode($_GET['name']);
$url = 'http://www.v60s.top/tvapi?act=search&name=' . $name;
} else {
echo 'Error: Missing parameter "name"';
exit();
}
} elseif($act == 'Daily') {
$url = 'http://www.v60s.top/tvapi?act=Daily';
} else {
echo 'Error: Invalid action';
exit();
}
// 使用cURL库发送GET请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
// 输出获取到的数据
echo $data;
} else {
echo '请检查字段"';
}
?>
https://pic.imgdb.cn/item/65e7e5b59f345e8d0379314c.jpg
https://pic.imgdb.cn/item/65e7e5be9f345e8d03794e90.jpg
https://pic.imgdb.cn/item/65e7e5ca9f345e8d037972b0.jpg
https://pic.imgdb.cn/item/65e7e5d29f345e8d03798a68.jpg
6 6 偏爱是我家,发展靠大家!
页:
[1]