This commit is contained in:
2025-07-08 16:25:55 +08:00
parent 125056bed7
commit 25a4ddcdfa
+6 -2
View File
@@ -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;
}
}