聚合图片API代码,可以自己对接各大API站点,
API源代码
<?php
{
if($_GET["sort"] == 'tb'){
$imgurl = 'https://api.qoc.cc/api/img?sort=meizix';
}
else if($_GET["sort"] == 'meizix'){
$imgurl = 'https://api.qoc.cc/api/img?sort=bj';
}
else if($_GET["sort"] == 'meizix'){
$imgurl = 'https://api.qoc.cc/api/img?sort=bj';
}
}
header("Location:".$imgurl);//跳转输出图片
?> 调用方法:你的域名/?sort=变量名
本文作者为远梦,转载请注明。