refactor: 新品页面是否新品处理

This commit is contained in:
2025-05-14 14:29:18 +08:00
parent 78d8ec5d4a
commit dc8331340f
4 changed files with 10 additions and 4 deletions

View File

@@ -367,7 +367,7 @@ class Product extends Common
$newpros = [];
// 获取新品上市产品
$products = ProductModel::field(['id', 'category_id', 'name', 'spu', 'cover_image'])
$products = ProductModel::field(['id', 'category_id', 'name', 'spu', 'cover_image', 'is_new'])
->language($this->lang_id)
->enabled(true)
->onSale(true)