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