修改bug

master
ELF 5 years ago
parent ad4f925b49
commit 797fd18bf2

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

Loading…
Cancel
Save