refactor: 新品页面是否新品处理
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user