From 853fab6c6c97cdf9e51da87887845bdd400aad8a Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Wed, 15 Jul 2026 15:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=AE=E6=94=B9=E4=B8=BAjw?= =?UTF-8?q?t=E9=AA=8C=E8=AF=813?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/AdminAuthMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/AdminAuthMiddleware.php b/app/Http/Middleware/AdminAuthMiddleware.php index 8e00fd3..c088655 100644 --- a/app/Http/Middleware/AdminAuthMiddleware.php +++ b/app/Http/Middleware/AdminAuthMiddleware.php @@ -44,7 +44,7 @@ class AdminAuthMiddleware // 检查 token 是否有效 if (!Auth::guard()->check()) { // 尝试通过 token 认证 - $request->headers->set('Authorization', 'Bearer ' . $token); + $request->headers->set('Authorization', $token); if (!Auth::guard()->check()) { return $this->responseService->unauthorized( __('middleware.auth.token_invalid')