From 29589448e8c5fed0dbd747b0c58052f5f41f046e Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Mon, 7 Oct 2024 21:50:13 +0800 Subject: [PATCH] jwt --- app/api/controller/Passport.php | 1 - app/api/middleware/JWTAuth.php | 4 ++-- app/api/service/JWTService.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/api/controller/Passport.php b/app/api/controller/Passport.php index 204e6dc..95666f7 100644 --- a/app/api/controller/Passport.php +++ b/app/api/controller/Passport.php @@ -18,7 +18,6 @@ class Passport extends ApiController{ if (!$this->request->isPost()) { return $this->renderError('不支持GET请求'); } - $data = $this->postData(); $model = new UserService; // $data = $this->postData(); diff --git a/app/api/middleware/JWTAuth.php b/app/api/middleware/JWTAuth.php index 436cfee..33be46e 100644 --- a/app/api/middleware/JWTAuth.php +++ b/app/api/middleware/JWTAuth.php @@ -1,7 +1,7 @@