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