Browse Source

second commit

cqpCow 11 months ago
parent
commit
5de943d9bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Middleware/CheckJRFIDLogin.php

+ 1 - 1
app/Http/Middleware/CheckJRFIDLogin.php

@@ -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'];