Merge branch 'dev' of http://47.244.231.31:8099/zhl/globalso-v6 into dev
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -34,7 +34,7 @@ class ProductController extends BaseController | @@ -34,7 +34,7 @@ class ProductController extends BaseController | ||
| 34 | $ids = CategoryRelated::where('cate_id', $this->param['category_id'])->pluck('product_id')->toArray(); | 34 | $ids = CategoryRelated::where('cate_id', $this->param['category_id'])->pluck('product_id')->toArray(); |
| 35 | $map[] = ['id', 'in', $ids]; | 35 | $map[] = ['id', 'in', $ids]; |
| 36 | } | 36 | } |
| 37 | - if(!empty($this->param['status'])){ | 37 | + if(isset($this->param['status'])){ |
| 38 | $map[] = ['status', $this->param['status']]; | 38 | $map[] = ['status', $this->param['status']]; |
| 39 | } | 39 | } |
| 40 | $sort = ['id' => 'desc']; | 40 | $sort = ['id' => 'desc']; |
-
请 注册 或 登录 后发表评论