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 {