|
|
@ -16,7 +16,7 @@ class Passport extends ApiController{ |
|
|
public function login():Json |
|
|
public function login():Json |
|
|
{ |
|
|
{ |
|
|
if (!$this->request->isPost()) { |
|
|
if (!$this->request->isPost()) { |
|
|
return $this->renderError('请求方式错误'); |
|
|
return $this->renderError('不支持GET请求'); |
|
|
} |
|
|
} |
|
|
$data = $this->postData(); |
|
|
$data = $this->postData(); |
|
|
$model = new UserService; |
|
|
$model = new UserService; |
|
|
|