fix bugs,add a CustomValidator,Support for different types of parameters