diff --git a/index.php b/index.php index 3a7d973dc3b50043bba9afd87bc607f482d9db60..3b61c8ef280655bd5d5f68ef0fdd844cf0cb318c 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ $str = file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1'); // 从bing获取数据 if(preg_match('/([^<]+)<\/url>/isU', $str, $matches)) { // 正则匹配抓取图片url - $imgurl = 'http://cn.bing.com'.$matches[1]; + $imgurl = 'https://cn.bing.com'.$matches[1]; } else { // 如果由于某些原因,没抓取到图片地址 $imgurl = 'http://img.infinitynewtab.com/InfinityWallpaper/2_14.jpg'; // 使用默认的图像(默认图像链接可修改为自己的) }