From 32b32def6f05e6c86faba05a217d22a4466a5109 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Sun, 6 Oct 2024 22:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Passport.php | 2 +- app/api/service/UserService.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api/controller/Passport.php b/app/api/controller/Passport.php index 76fe349..5a15ab7 100644 --- a/app/api/controller/Passport.php +++ b/app/api/controller/Passport.php @@ -16,7 +16,7 @@ class Passport extends ApiController{ public function login():Json { if (!$this->request->isPost()) { - return $this->renderError('请求方式错误'); + return $this->renderError('不支持GET请求'); } $data = $this->postData(); $model = new UserService; diff --git a/app/api/service/UserService.php b/app/api/service/UserService.php index 4b4b32e..524cee5 100644 --- a/app/api/service/UserService.php +++ b/app/api/service/UserService.php @@ -2,7 +2,6 @@ namespace app\api\service; use app\api\model\User; -use think\Db; /** * 用户表 */