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;