作者 lyh

gx

... ... @@ -37,6 +37,7 @@ class CategoryController extends BaseController
$this->map['project_id'] = $this->user['project_id'];
$filed = ['id', 'project_id', 'pid', 'title', 'image', 'route','keywords', 'describe', 'status','created_at'];
$list = $category->list($this->map,'id',$filed);
$data = [];
if(!empty($list)){
foreach ($list as $k =>$v){
$v = $this->handleParam($category,$v);
... ...
... ... @@ -29,14 +29,6 @@ class Category extends Base
*/
protected $child_ids_arr = [];
// protected $appends = ['route'];
// public function getRouteAttribute(){
// return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_CATE, $this->id, $this->project_id);
// }
/**
* 获取指定分类的所有子分类IDS(包括自己)
* @param $id
... ...