This commit is contained in:
2025-06-27 15:24:58 +08:00
parent 8112aa5dec
commit c30ff3cca1
18 changed files with 822 additions and 73 deletions
@@ -46,7 +46,13 @@ class ArticleController extends BaseController
if ($item['cover']) {
$item['cover_full'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($item['cover']);
}
foreach ($item['comment'] as &$comment) {
if ($comment['avatar']) {
$comment['avatar_full'] = (new \app\mzl\modules\upload\service\OssService())->generatePrivateUrl($comment['avatar']);
}
}
unset($comment);
}
return $item;