dyjh 6 vuotta sitten
vanhempi
commit
df15ddc059
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/Http/Middleware/AuthenticateApi.php

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

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