This commit is contained in:
2025-08-15 17:51:51 +08:00
parent 0efa7c6695
commit b3d44838f1
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}