database
This commit is contained in:
@@ -49,7 +49,7 @@ class Frontend
|
||||
// 初始化会员鉴权实例
|
||||
$this->auth = Auth::instance();
|
||||
$token = request()->header('token');
|
||||
if ($token) {
|
||||
if ($token && $needLogin) {
|
||||
if(!$this->auth->init($token)) {
|
||||
$this->error('Token expiration', [], 401);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user