Commit bf13b8e3 authored by hangjun83's avatar hangjun83

openapi 1.1

parent 1b48a691
......@@ -54,6 +54,9 @@ class Authenticate
*/
public function handle($request, Closure $next, $guard = null)
{
if(!$request->header('authorization')){
return Response::fail('token 不存在!',500,'');
}
$token = trim(str_ireplace('bearer', '', $request->header('authorization')));
try{
$decodeToken = $this->decodeToken($token);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment