update
This commit is contained in:
parent
c7282f94ca
commit
65deae342a
@ -60,8 +60,8 @@ class MaterialClassifyLists extends BaseAdminDataLists implements ListsSearchInt
|
|||||||
->order(['id' => 'asc'])
|
->order(['id' => 'asc'])
|
||||||
->select()
|
->select()
|
||||||
->toArray();
|
->toArray();
|
||||||
$tree = buildTree($data,'pid');
|
$data[] = ['id'=>0,'pid'=>0,'name'=>'顶级分类'];
|
||||||
return $tree;
|
return buildTree($data,'pid');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user