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'])) {