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; /** * 用户表 */