From 5c203379d748b8893b2acc297353c640149490fe Mon Sep 17 00:00:00 2001 From: fantasticbin Date: Fri, 18 Nov 2022 17:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84JWT=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/PunchCard/User/WechatAuthController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controller/PunchCard/User/WechatAuthController.php b/app/Controller/PunchCard/User/WechatAuthController.php index 4b27208..c9e075e 100644 --- a/app/Controller/PunchCard/User/WechatAuthController.php +++ b/app/Controller/PunchCard/User/WechatAuthController.php @@ -7,6 +7,7 @@ namespace App\Controller\PunchCard\User; use App\Controller\BaseController; use App\Exception\BusinessException; use app\Constants\Wechat\AuthErrorCode; +use App\Middleware\AuthMiddleware; use App\Service\User\WechatAuthService; use Hyperf\Di\Annotation\Inject; use Hyperf\HttpServer\Annotation\Controller; @@ -51,7 +52,7 @@ class WechatAuthController extends BaseController * * @return array */ - #[Middleware(JWTAuthDefaultSceneMiddleware::class)] + #[Middleware(AuthMiddleware::class)] #[GetMapping(path: "auth/refresh_token")] public function refreshToken() : array {