modified 代码备份

This commit is contained in:
zhaoxiang 2020-06-10 00:34:35 +08:00
parent 1dcc300296
commit 89ff86b55e

View File

@ -107,12 +107,12 @@ class Login extends Base {
return $this->buildSuccess($access);
} else {
$groups = AdminAuthGroupAccess::get(['uid' => $uid]);
$groups = AdminAuthGroupAccess::get(['uid' => $this->userInfo['id']]);
if (isset($groups) && $groups->group_id) {
$access = (new AdminAuthRule())->whereIn('group_id', $groups->group_id)->select();
$access = Tools::buildArrFromObj($access);
return array_values(array_unique(array_column($access, 'url')));
return array_unique(array_column($access, 'url'));
} else {
return [];
}