Merge branch 'feature/article' into develop

This commit is contained in:
2025-07-08 16:26:06 +08:00
+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;
}
}