@@ -36,7 +36,6 @@ class SpuDao extends BaseDao
*/
public function search($where)
{
- var_dump($where['type']);die();
$order = 'P.sort DESC';
if(isset($where['order']) && $where['order'] !== 'range_asc'){
if(in_array($where['order'], ['is_new', 'price_asc', 'price_desc', 'rate', 'sort', 'sales','ot_price','ot_price_desc','ot_price_asc'])){
@@ -193,6 +193,7 @@ class SpuRepository extends BaseRepository
$where['spu_status'] = 1;
$where['mer_status'] = 1;
$where['not_type'] = [20];
+ var_dump($where['type']);die();
$query = $this->dao->search($where);
$query->with([
'merchant' => function ($query) {
@@ -64,7 +64,7 @@ class StoreSpu extends BaseController
$where['is_gift_bag'] = 0;
// $where['product_type'] = 0;
$where['order'] = $where['order'] ?: 'star';
-
+ var_dump($where);die();
$data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo);
return app('json')->success($data);
}