是否鉴权
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user