昨天发的360 今天有来了,这个接口是必应的每日高清壁纸,而且是支持https的哦,下面贴代码

/**
 * 必应随机壁纸
 * @author Reaper <a@0oo.ren>
 * @request https://www.52bz.la
 * @return string
 */
public function bing_bizhi()
{
    $num = rand(0,1) ? 8 : 0 ;
    $link = file_get_contents('http://www.bing.com/HPImageArchive.aspx?format=js&idx='.$num.'&n=8&pid=hp&_='.md5(rand(1111,9999).'https://www.52bz.la'.time()));
    $json = json_decode($link,1);
    return 'https://www.bing.com/'.$json["images"][rand(0,count($json['images'])-1)]['url'];
} 
Last modification:December 13th, 2019 at 03:22 pm
如果觉得我的文章对你有用,请随意赞赏