dyjh 6 years ago
parent
commit
df15ddc059
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Middleware/AuthenticateApi.php

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

@@ -19,7 +19,7 @@ class AuthenticateApi
         $userAuth = Auth('api')->user();
         $userAuth = Auth('api')->user();
         if (!$userAuth) {
         if (!$userAuth) {
             return Response::json([
             return Response::json([
-                'status_code' => 1000,
+                'status_code' => 401,
                 'message' => '请登录',
                 'message' => '请登录',
                 'data' => []
                 'data' => []
             ], 200);
             ], 200);