作者 刘锟

amp站点图片添加宽高属性

... ... @@ -28,13 +28,13 @@ class WebSettingAmpLogic extends BaseLogic
return $this->success();
}
//log图处理
if(!empty($info['top_logo'])){
$info['top_logo'] = Arr::s2a($info['top_logo']);
if(!empty($info['top_logo'])){
$info['top_logo']['url'] = getImageUrl($info['top_logo']['url'], $this->user['storage_type'], $this->user['project_location']);
}
//banner处理
if (!empty($info['index_banner'])) {
$info['index_banner'] = Arr::s2a($info['index_banner']);
if (!empty($info['index_banner'])) {
foreach ($info['index_banner'] as &$v) {
$v['url'] = getImageUrl($v['url'], $this->user['storage_type'], $this->user['project_location']);
}
... ...