作者 lyh

gx

@@ -56,8 +56,8 @@ class ProductController extends BaseController @@ -56,8 +56,8 @@ class ProductController extends BaseController
56 $map[] = ['status', $this->param['status']]; 56 $map[] = ['status', $this->param['status']];
57 } 57 }
58 $sort = ['id' => 'desc']; 58 $sort = ['id' => 'desc'];
59 - $data = DB::table('gl_product')->where(['project_id'=>$this->user['project_id']])->paginate($this->row);  
60 -// $data = $logic->getList($map, $sort, ['id', 'project_id', 'title', 'thumb', 'product_type' , 'route' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'],$this->row); 59 +
  60 + $data = $logic->getList($map, $sort, ['id', 'project_id', 'title', 'thumb', 'product_type' , 'route' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'],$this->row);
61 return $this->response('success',Code::SUCCESS,$data); 61 return $this->response('success',Code::SUCCESS,$data);
62 } 62 }
63 63