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