dyjh 7 years ago
parent
commit
751abb7fbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/V1/IndexController.php

+ 1 - 1
app/Http/Controllers/Api/V1/IndexController.php

xqd
@@ -208,7 +208,7 @@ class IndexController extends Controller
         if ($validator->fails()) {
             return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
         }
-        $user = Auth::user();
+        $user = Auth('api')->user();
         echo 111;
         dd($user);
         $id = $request->input('id');