Merge branch 'feature/article' into develop
This commit is contained in:
@@ -46,7 +46,11 @@ class AdController extends BaseController
|
|||||||
$item['alt'] = isset($item['translation']) ? $item['translation']['alt'] : '';
|
$item['alt'] = isset($item['translation']) ? $item['translation']['alt'] : '';
|
||||||
$item['title'] = isset($item['translation']) ? $item['translation']['title'] : '';
|
$item['title'] = isset($item['translation']) ? $item['translation']['title'] : '';
|
||||||
unset($item['translation']);
|
unset($item['translation']);
|
||||||
$item['full_img'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['img']);
|
if(!empty($item['img'])){
|
||||||
|
$item['full_img'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['img']);
|
||||||
|
}else{
|
||||||
|
$item['full_img'] = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
|
|||||||
Reference in New Issue
Block a user