xiaogang 3 years ago
parent
commit
3974cf6629
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Admin/Actions/Users/UsersInfo.php

+ 1 - 1
app/Admin/Actions/Users/UsersInfo.php

@@ -19,7 +19,7 @@ class UsersInfo extends Form implements LazyRenderable
 
 
     public function handle(array $input)
     public function handle(array $input)
     {
     {
-        $user = User::query()->find($input['id']);
+        $user = User::query()->where('id',$input['id'])->first();
         if(!$user){
         if(!$user){
 
 
             return $this->response()->error('请刷新后重试');
             return $this->response()->error('请刷新后重试');