WIN-2308041133\Administrator 5 mēneši atpakaļ
vecāks
revīzija
d94f80fe33

+ 1 - 0
app/common/dao/store/product/SpuDao.php

@@ -36,6 +36,7 @@ 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'])){

+ 1 - 1
app/common/repositories/store/product/SpuRepository.php

@@ -193,7 +193,7 @@ class SpuRepository extends BaseRepository
         $where['spu_status'] = 1;
         $where['mer_status'] = 1;
         $where['not_type'] = [20];
-        var_dump($where['type']);die();
+        var_dump($where['type']);
         $query = $this->dao->search($where);
         $query->with([
             'merchant' => function ($query) {

+ 1 - 1
app/controller/api/store/product/StoreSpu.php

@@ -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);
     }