正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -496,7 +496,7 @@ class ProductLogic extends BaseLogic | @@ -496,7 +496,7 @@ class ProductLogic extends BaseLogic | ||
| 496 | $cateList = $cateModel->list($status,'id',['id','pid']); | 496 | $cateList = $cateModel->list($status,'id',['id','pid']); |
| 497 | $this->param['featured_status'] = $this->param['featured_status'] ?? 0; | 497 | $this->param['featured_status'] = $this->param['featured_status'] ?? 0; |
| 498 | if(!empty($cateList) && ($this->param['featured_status'] != $cateModel::STATUS_ACTIVE)){ | 498 | if(!empty($cateList) && ($this->param['featured_status'] != $cateModel::STATUS_ACTIVE)){ |
| 499 | - $featured_ids = $cateModel->where('title', 'Featured')->pluck('id')->toArray(); | 499 | + $featured_ids = $cateModel->formatQuery(['title'=>['in',['Featured','featured']]])->pluck('id')->toArray(); |
| 500 | //获取当前的子集 | 500 | //获取当前的子集 |
| 501 | $featured_arr = []; | 501 | $featured_arr = []; |
| 502 | foreach ($featured_ids as $id){ | 502 | foreach ($featured_ids as $id){ |
-
请 注册 或 登录 后发表评论