增加注册时根据公司进行自动授权&&调整资源列表返回

This commit is contained in:
mzl@hnxinyouhe.com
2025-08-13 15:18:36 +08:00
parent cd4de8b206
commit 2696f52db2
4 changed files with 114 additions and 8 deletions
+6
View File
@@ -118,6 +118,12 @@ class AuthLogic
}
// 是否登陆
$user->isLogin = false;
$options = [
'corp_id' => $user->corp_id,
'user_id' => $user->id
];
\Webman\RedisQueue\Redis::send('perm-agt', $options);
} else {
$updated = [
'union_id' => $feishuUserInfo['union_id'],
+1 -2
View File
@@ -487,8 +487,7 @@ class Tree
{
$extraFields = [];
$standardFields = [
'id', 'name', 'url', 'icon', 'parent_id', 'type', 'is_hide',
'is_hide_tab', 'keep_alive', 'code', 'level'
'id', 'name', 'url', 'icon', 'is_hide', 'is_hide_tab', 'keep_alive', 'level'
];
foreach ($item as $key => $value) {