You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace App\Controller;
use App\Constants\Res;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middleware;
use Hyperf\HttpServer\Annotation\Middlewares;
use Phper666\JWTAuth\Middleware\JWTAuthMiddleware;
use App\Middleware\ApiMiddleware;
use Hyperf\Utils\Codec\Json;
use Hyperf\HttpServer\Router\Dispatched;
use Hyperf\HttpServer\Router\DispatcherFactory;
use Hyperf\HttpServer\Annotation\PutMapping;
use Hyperf\HttpServer\Annotation\GetMapping;
/*** @Controller
*/
class DemoController extends AbstractController {
// 此处省略其他代码
/*** @Middlewares({
* @Middleware(JWTAuthMiddleware::class),
* @Middleware(ApiMiddleware::class)
* })
*/
public functiontest(){$data = $this->jwt->getParserData();
return$data;
}
}
The text was updated successfully, but these errors were encountered:
经排查,对应的代码为
The text was updated successfully, but these errors were encountered: