|
@@ -403,7 +403,7 @@ class ProductLogic extends BaseLogic |
|
@@ -403,7 +403,7 @@ class ProductLogic extends BaseLogic |
|
403
|
$cateList = $cateModel->list($status,'id',['id','pid']);
|
403
|
$cateList = $cateModel->list($status,'id',['id','pid']);
|
|
404
|
$this->param['featured_status'] = $this->param['featured_status'] ?? 0;
|
404
|
$this->param['featured_status'] = $this->param['featured_status'] ?? 0;
|
|
405
|
if(!empty($cateList) && ($this->param['featured_status'] != $cateModel::STATUS_ACTIVE)){
|
405
|
if(!empty($cateList) && ($this->param['featured_status'] != $cateModel::STATUS_ACTIVE)){
|
|
406
|
- $featured_ids = $cateModel->where('title', 'like', 'Featured%')->pluck('id')->toArray();
|
406
|
+ $featured_ids = $cateModel->where('title', 'Featured')->pluck('id')->toArray();
|
|
407
|
//获取当前的子集
|
407
|
//获取当前的子集
|
|
408
|
$featured_arr = [];
|
408
|
$featured_arr = [];
|
|
409
|
foreach ($featured_ids as $id){
|
409
|
foreach ($featured_ids as $id){
|