From 81963c730984260832ef95ea207f21422984e494 Mon Sep 17 00:00:00 2001 From: Joyboo Date: Wed, 13 Sep 2023 20:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5operinfo=E5=90=8E=E7=BD=AE?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/HttpController/Admin/AuthTrait.php | 7 +++++++ 1 file changed, 7 insertions(+) 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