|
...
|
...
|
@@ -57,7 +57,7 @@ class AiProductLogic extends BaseLogic |
|
|
|
public function productCateList($map){
|
|
|
|
$map['project_id'] = $this->user['project_id'];
|
|
|
|
$productCateModel = new Category();
|
|
|
|
$list = $productCateModel->list($map,'created_at',['id','project_id','title']);
|
|
|
|
$list = $productCateModel->list($map,'created_at',['id','project_id','title','pid']);
|
|
|
|
$menu = [];
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
$v = (array)$v;
|
|
...
|
...
|
@@ -66,6 +66,6 @@ class AiProductLogic extends BaseLogic |
|
|
|
$menu[] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($list);
|
|
|
|
return $this->success($menu);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|