xyiege 1 year ago
parent
commit
29589448e8
  1. 1
      app/api/controller/Passport.php
  2. 4
      app/api/middleware/JWTAuth.php
  3. 2
      app/api/service/JWTService.php

1
app/api/controller/Passport.php

@ -18,7 +18,6 @@ class Passport extends ApiController{
if (!$this->request->isPost()) { if (!$this->request->isPost()) {
return $this->renderError('不支持GET请求'); return $this->renderError('不支持GET请求');
} }
$data = $this->postData();
$model = new UserService; $model = new UserService;
// //
$data = $this->postData(); $data = $this->postData();

4
app/api/middleware/JWTAuth.php

@ -1,7 +1,7 @@
<?php <?php
namespace app\middleware; namespace app\api\middleware;
use app\service\JWTService; use app\api\service\JWTService;
use think\Exception; use think\Exception;
use think\Request; use think\Request;

2
app/api/service/JWTService.php

@ -1,5 +1,5 @@
<?php <?php
namespace app\service; namespace app\api\service;
use Lcobucci\JWT\Parser; use Lcobucci\JWT\Parser;
use Lcobucci\JWT\Signer\Hmac\Sha256; use Lcobucci\JWT\Signer\Hmac\Sha256;

Loading…
Cancel
Save