From 1c8f8c52b4a285ae6c1c38811784d4d417453c87 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 1 Oct 2019 01:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95bug?= 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 4d3b136fa..3347c675a 100644 --- a/Application/Common/Common/function.php +++ b/Application/Common/Common/function.php @@ -1009,7 +1009,7 @@ function get_cover($cover_id, $field = null, $root = 1, $flag = true) $picture = M('Picture')->where(array('status' => 1))->getById($cover_id); if (get_tool_status("oss_storage") == 1) { if (!empty($picture['oss_url'])) { - return $picture['oss_url']; + return str_replace('http:', 'https:', $picture['oss_url']); } else { return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path']; }