From 120a88da307551691419b172e6c83cf1f7b6753c Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 1 Dec 2025 10:42:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/BaseApp/BaseService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/BaseApp/BaseService.php b/app/BaseApp/BaseService.php index 9ab31b48..7231732c 100755 --- a/app/BaseApp/BaseService.php +++ b/app/BaseApp/BaseService.php @@ -92,11 +92,11 @@ class BaseService /** * @var bool 是否鉴权 */ - private $auth = true; + private $isAuth = true; public function __construct() { - if ($this->auth === true) { + if ($this->isAuth === true) { $this->userInfo = JWTService::getInstance()->getToken()->getUserInfo(); $this->userId = $this->userInfo['id'] ?? 0; $this->roleId = $this->userInfo['role_id'] ?? 0;