批量更新租户规则
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user