Commit 905b4a17 authored by 刘小敏's avatar 刘小敏

购物车推荐商品增加上架中限制

parent cc44f795
...@@ -55,7 +55,7 @@ class Cart extends Common ...@@ -55,7 +55,7 @@ class Cart extends Common
]; ];
$goodsModel = new Goods(); $goodsModel = new Goods();
$result = $goodsModel->where('recommend', 1)->paginate($param); $result = $goodsModel->where('recommend', 1)->where('status', 'up')->paginate($param);
$this->success('获取成功', $result); $this->success('获取成功', $result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment