From ce734492caf62a1d4903488b3461b1820db36b00 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 1 Oct 2019 00:14:28 +0800 Subject: [PATCH] =?UTF-8?q?https/http=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Common/function.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Common/Common/function.php b/Application/Common/Common/function.php index 1c86b10b5..4d3b136fa 100644 --- a/Application/Common/Common/function.php +++ b/Application/Common/Common/function.php @@ -1011,25 +1011,25 @@ function get_cover($cover_id, $field = null, $root = 1, $flag = true) if (!empty($picture['oss_url'])) { return $picture['oss_url']; } else { - return 'http://' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; + return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; } } elseif (get_tool_status("qiniu_storage") == 1) { if (!empty($picture['url'])) { return $picture['url']; } else { - return 'http://' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; + return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; } } elseif (get_tool_status("cos_storage") == 1) { if (!empty($picture['url'])) { return $picture['url']; } else { - return 'http://' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; + return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; } } elseif (get_tool_status("bos_storage") == 1) { if (!empty($picture['bos_url'])) { return $picture['bos_url']; } else { - return 'http://' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; + return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; } } else { if ($field == 'path') {