正在显示
1 个修改的文件
包含
1 行增加
和
5 行删除
| @@ -489,11 +489,7 @@ class ProductLogic extends BaseLogic | @@ -489,11 +489,7 @@ class ProductLogic extends BaseLogic | ||
| 489 | foreach ($data as $k => $v){ | 489 | foreach ($data as $k => $v){ |
| 490 | $map = []; | 490 | $map = []; |
| 491 | $cateModel = new Category(); | 491 | $cateModel = new Category(); |
| 492 | - $status = []; | ||
| 493 | - if($v != 3){ | ||
| 494 | - $status = ['status'=>$v]; | ||
| 495 | - } | ||
| 496 | - $cateList = $cateModel->list($status,'id',['id','pid']); | 492 | + $cateList = $cateModel->list(['status'=>1],'id',['id','pid']); |
| 497 | $this->param['featured_status'] = $this->param['featured_status'] ?? 0; | 493 | $this->param['featured_status'] = $this->param['featured_status'] ?? 0; |
| 498 | if(!empty($cateList) && ($this->param['featured_status'] != $cateModel::STATUS_ACTIVE)){ | 494 | if(!empty($cateList) && ($this->param['featured_status'] != $cateModel::STATUS_ACTIVE)){ |
| 499 | $featured_ids = $cateModel->formatQuery(['title'=>['in',['Featured','featured']]])->pluck('id')->toArray(); | 495 | $featured_ids = $cateModel->formatQuery(['title'=>['in',['Featured','featured']]])->pluck('id')->toArray(); |
-
请 注册 或 登录 后发表评论