diff --git a/src/main/java/jty/expressdistributionsystem/DTO/UserModifyInfoDTO.java b/src/main/java/jty/expressdistributionsystem/DTO/UserModifyInfoDTO.java index e83769c..e03fc0a 100644 --- a/src/main/java/jty/expressdistributionsystem/DTO/UserModifyInfoDTO.java +++ b/src/main/java/jty/expressdistributionsystem/DTO/UserModifyInfoDTO.java @@ -10,6 +10,6 @@ public class UserModifyInfoDTO { private String userName; @NotBlank(message = "手机号不能为空") - @Pattern(regexp = "^1[3-9]\\d{9}$") + @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号不存在") private String phone; }