Files
lotteryLaravel/app/Http/Middleware/EnsurePlayerApi.php

19 lines
366 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* 玩家端 API后续在此校验 SSO / Bearer Token并解析当前 players.id。
*/
class EnsurePlayerApi
{
public function handle(Request $request, Closure $next): Response
{
return $next($request);
}
}