批量更新租户规则

This commit is contained in:
hero920103 committed 2026-03-09 23:00:20 +08:00
1 parent e09b4c639c
commit e27cc8f457
45 files changed
+579 -314

No files matched your search

+2 -2
View File
@@ -188,14 +188,14 @@ abstract class BaseController
}
/**
* 获取当前用户的 tenant_id
* 获取当前用户的 tid
*
* @return int 租户ID
*/
protected function getTenantId(): int
{
$userInfo = $this->getAdminUserInfo();
return isset($userInfo['tenant_id']) ? intval($userInfo['tenant_id']) : 0;
return isset($userInfo['tid']) ? intval($userInfo['tid']) : 0;
}
}