xiaogang 3 anni fa
parent
commit
03ccefff8a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/Admin/Actions/Users/UsersInfo.php

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

xqd xqd
@@ -31,8 +31,8 @@ class UsersInfo extends Form implements LazyRenderable
         }
         if($input['password']!=''){
             $user->password = $input['password'];
-
         }
+        $user->sex = $input['sex'];
         $user->save();
         return $this->response()->success('保存成功')->refresh();
     }
@@ -53,5 +53,6 @@ class UsersInfo extends Form implements LazyRenderable
                 return $v;
             })
             ->help('请输入6-20个字符,不填写则不修改');
+        $this->radio('sex','性别')->options([1=>"男",2=>"女"])->checked([$user->sex]);
     }
 }