Browse Source

修改手机号格式提示

杨杰 6 years ago
parent
commit
5cce814723
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/llisoft/sms/vo/SendCodeRequestVo.java

+ 1 - 1
src/main/java/com/llisoft/sms/vo/SendCodeRequestVo.java

@@ -11,7 +11,7 @@ public class SendCodeRequestVo {
 	
 	@ApiModelProperty(value="手机号码", example=" ")
 	@NotBlank(message="手机号码不能为空")
-	@Pattern(regexp="1[0-9]{10}")
+	@Pattern(regexp="1[0-9]{10}", message="手机号码格式不正确")
 	private String phone;
 	
 	@ApiModelProperty(value="验证码参数:appkey", example=" ")