|
@@ -17,7 +17,7 @@ class CheckJRFIDLogin
|
|
|
public function handle($request, Closure $next)
|
|
|
{
|
|
|
$token = $request->header('Authorization');
|
|
|
- if (! isset($token)) return response()->json(['code'=>201,'msg'=>'缺少token','data'=>null]);
|
|
|
+ if (! isset($token)) return response()->json(['code'=>201,'msg'=>'缺少Authorization','data'=>null]);
|
|
|
if(strpos($token, "Bearer ") === false) $token = "Bearer " . $token;
|
|
|
$data['token'] = $token;
|
|
|
$data['header'] = ["Authorization: {$token}",'Content-Type:application/json'];
|