正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论