批量更新租户规则

This commit is contained in:
2026-03-09 23:00:20 +08:00
parent e09b4c639c
commit e27cc8f457
45 changed files with 579 additions and 314 deletions
+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;
}
}