完善JWT认证机制
This commit is contained in:
		
							parent
							
								
									779237afcd
								
							
						
					
					
						commit
						5c203379d7
					
				| @ -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 | ||||
|     { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user