聚合图片API代码

远梦 681 0

聚合图片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=变量名

如:https://api.qoc.cc/api/img?sort=meizix

使用 PHP 实现随机图片

2年前 (2022-11-20) 0
使用 PHP 实现随机图片

发表评论 取消回复
表情 图片 链接 代码

分享