mirror of https://gitee.com/karson/fastadmin.git
简化代码
parent
87acccfdf2
commit
f804c8a460
|
|
@ -348,10 +348,7 @@ class Auth extends \fast\Auth
|
|||
$obj = Tree::instance()->init($childrenList, 'pid')->getTreeArray($v['pid']);
|
||||
$objList = array_merge($objList, Tree::instance()->getTreeList($obj));
|
||||
}
|
||||
$childrenGroupIds = [];
|
||||
foreach ($objList as $k => $v) {
|
||||
$childrenGroupIds[] = $v['id'];
|
||||
}
|
||||
$childrenGroupIds = array_column($objList, 'id');
|
||||
if (!$withself) {
|
||||
$childrenGroupIds = array_diff($childrenGroupIds, $groupIds);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue