作者 lyh

gx

@@ -56,7 +56,6 @@ class ProductController extends BaseController @@ -56,7 +56,6 @@ 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 -  
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 $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); 60 return $this->response('success',Code::SUCCESS,$data);
62 } 61 }
@@ -36,7 +36,7 @@ class BaseLogic extends Logic @@ -36,7 +36,7 @@ class BaseLogic extends Logic
36 $this->request = request(); 36 $this->request = request();
37 $this->requestAll = request()->all(); 37 $this->requestAll = request()->all();
38 $this->user = Cache::get(request()->header('token')); 38 $this->user = Cache::get(request()->header('token'));
39 - $this->project = (new ProjectLogic())->getProjectInfo($this->user['project_id']); 39 + $this->project = (new ProjectLogic())->getInfo($this->user['project_id']);
40 } 40 }
41 41
42 42