root 5 years ago
parent
commit
ba9d00f088
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Http/Controllers/Admin/UserController.php

+ 3 - 3
app/Http/Controllers/Admin/UserController.php

@@ -36,9 +36,9 @@ class UserController extends Controller
         ]);
     }
 
-    public function id2UserInfo($id)
+    public function getUserInfoById(Request $request)
     {
-        if (empty($id)) {
+        if (empty($request->input('id'))) {
             abort(500, '参数错误');
         }
         return response([
@@ -48,7 +48,7 @@ class UserController extends Controller
                 'd',
                 'transfer_enable',
                 'expired_at'
-            ])->find($id)
+            ])->find($request->input('id'))
         ]);
     }