From 9d7c68a20fcc8ce7a7a3601868b04489006fd06d Mon Sep 17 00:00:00 2001 From: Tim-Paik Date: Sun, 21 Mar 2021 21:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=B7=B3=E8=BD=AC=E5=88=B0ht?= =?UTF-8?q?tps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 3a7d973..3b61c8e 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'; // 使用默认的图像(默认图像链接可修改为自己的) } -- Gitee