From 797fd18bf27c31aa82064f69982a9d23da735058 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 1 Oct 2019 01:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Common/function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Common/Common/function.php b/Application/Common/Common/function.php index 3347c675a..c87284739 100644 --- a/Application/Common/Common/function.php +++ b/Application/Common/Common/function.php @@ -1011,7 +1011,7 @@ function get_cover($cover_id, $field = null, $root = 1, $flag = true) if (!empty($picture['oss_url'])) { return str_replace('http:', 'https:', $picture['oss_url']); } else { - return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; + return 'https://' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; } } elseif (get_tool_status("qiniu_storage") == 1) { if (!empty($picture['url'])) {