Merge branch 'dev'

master
ELF 5 years ago
commit 83ac07a1bf

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

Loading…
Cancel
Save