diff --git a/src/HttpController/Admin/AuthTrait.php b/src/HttpController/Admin/AuthTrait.php index 88f0748..0c4bf64 100644 --- a/src/HttpController/Admin/AuthTrait.php +++ b/src/HttpController/Admin/AuthTrait.php @@ -94,11 +94,18 @@ protected function checkAuthorization() $this->operinfo = $data->toArray(); $this->operinfo['role'] = $relation; + $this->operinfoAfter(); + // 将管理员信息挂载到Request CtxRequest::getInstance()->withOperinfo($this->operinfo); return $this->checkAuth(); } + protected function operinfoAfter() + { + + } + /** * 权限 * @return bool