refactor: 产品分类推荐列表图片改为缩略图
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s

This commit is contained in:
2026-03-28 11:04:10 +08:00
parent ebe1c3015e
commit 725cfa9004

View File

@@ -41,9 +41,9 @@ class ProductCategoryRecommend
->bindAttr('category', ['category_name' => 'name'])
->hidden(['category', 'language_id', 'updated_at', 'deleted_at'])
?->each(function($item) use($image_host) {
// 拼接完整图片URL
// 列表页面图片输出缩略图
if (!empty($item['image'])) {
$item['image'] = url_join($image_host, $item['image']);
$item['image'] = thumb($item['image']);
}
});