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