|
...
|
...
|
@@ -31,6 +31,9 @@ class Category extends Base |
|
|
|
*/
|
|
|
|
public static function getChildIdsArr($id)
|
|
|
|
{
|
|
|
|
if(!$id){
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
$list = self::where('status', self::STATUS_ACTIVE)->select(['id','pid'])->get()->toArray();
|
|
|
|
$ids = [];
|
|
|
|
Arr::findChildIds($list, $id, $ids);
|
...
|
...
|
|