mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-06-01 17:09:15 +08:00
modified 代码备份
This commit is contained in:
parent
1dcc300296
commit
89ff86b55e
@ -107,12 +107,12 @@ class Login extends Base {
|
|||||||
|
|
||||||
return $this->buildSuccess($access);
|
return $this->buildSuccess($access);
|
||||||
} else {
|
} else {
|
||||||
$groups = AdminAuthGroupAccess::get(['uid' => $uid]);
|
$groups = AdminAuthGroupAccess::get(['uid' => $this->userInfo['id']]);
|
||||||
if (isset($groups) && $groups->group_id) {
|
if (isset($groups) && $groups->group_id) {
|
||||||
$access = (new AdminAuthRule())->whereIn('group_id', $groups->group_id)->select();
|
$access = (new AdminAuthRule())->whereIn('group_id', $groups->group_id)->select();
|
||||||
$access = Tools::buildArrFromObj($access);
|
$access = Tools::buildArrFromObj($access);
|
||||||
|
|
||||||
return array_values(array_unique(array_column($access, 'url')));
|
return array_unique(array_column($access, 'url'));
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user