云上仙乐

API丨搜狗随机壁纸API源码及高速接口
<?php /** * 通过搜狗搜索壁纸接口随机图片@param string $ImgClass 图片分类...
扫描右侧二维码阅读全文
11
2018/11

API丨搜狗随机壁纸API源码及高速接口

<?php /** * 通过搜狗搜索壁纸接口随机图片@param string $ImgClass 图片分类 | $ImgOrder 图片 */ $GetImgUrl = file_get_contents("https://www.sogou.com/home/data/skinlist?code=".md5('Reaper'.rand(998,19998))); $GetImgRen = json_decode($GetImgUrl,1); $ImgClass = $GetImgRen['skinlib'][rand(0,count($GetImgRen['skinlib'])-1)]['skins']; $ImgOrder = rand(0,count($ImgClass)-1); header("location:".$ImgClass[$ImgOrder]['bigurl']);

源码转至皮皮赖博客。

Last modification:November 11th, 2018 at 01:21 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment