|
|
@ -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);
|
|
|
|
$picture = M('Picture')->where(array('status' => 1))->getById($cover_id);
|
|
|
|
if (get_tool_status("oss_storage") == 1) {
|
|
|
|
if (get_tool_status("oss_storage") == 1) {
|
|
|
|
if (!empty($picture['oss_url'])) {
|
|
|
|
if (!empty($picture['oss_url'])) {
|
|
|
|
return $picture['oss_url'];
|
|
|
|
return str_replace('http:', 'https:', $picture['oss_url']);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path'];
|
|
|
|
return '//' . $_SERVER['HTTP_HOST'] . __ROOT__ . $picture['path'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|