获取管理员的ID,使用的是$this->auth->id但是我想获取到该管理员的角色组ID,请问怎么写? //获取管理员所属于的分组$this->auth->getGroups() //获取管理员所属于的分组ID$this->auth->getGroupIds() //取出当前管理员所拥有权限的分组$this->auth->getChildrenGroupIds(true) 相关文章: 2022-01-21 2022-12-23 2022-01-10 2021-10-25 2022-12-23 2021-11-03 2021-10-16 2022-01-12
//获取管理员所属于的分组
$this->auth->getGroups()
//获取管理员所属于的分组ID
$this->auth->getGroupIds()
//取出当前管理员所拥有权限的分组
$this->auth->getChildrenGroupIds(true)