Browse Source

调整代码

master
xyiege 1 year ago
parent
commit
32b32def6f
  1. 2
      app/api/controller/Passport.php
  2. 1
      app/api/service/UserService.php

2
app/api/controller/Passport.php

@ -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;

1
app/api/service/UserService.php

@ -2,7 +2,6 @@
namespace app\api\service; namespace app\api\service;
use app\api\model\User; use app\api\model\User;
use think\Db;
/** /**
* 用户表 * 用户表
*/ */

Loading…
Cancel
Save