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']; }