refactor: 将短信验证码长度从 4 位增加到 6 位 (PR by Gitee@hagyao520)

This commit is contained in:
2025-03-20 22:36:17 +08:00
parent 2ec0b343e0
commit 611c3d8a0a
4 changed files with 6 additions and 6 deletions

View File

@@ -49,8 +49,8 @@ public class PhoneLoginReq extends LoginReq {
/**
* 验证码
*/
@Schema(description = "验证码", example = "8888")
@Schema(description = "验证码", example = "888888")
@NotBlank(message = "验证码不能为空")
@Length(max = 4, message = "验证码非法")
@Length(max = 6, message = "验证码非法")
private String captcha;
}

View File

@@ -50,9 +50,9 @@ public class UserPhoneUpdateReq implements Serializable {
/**
* 验证码
*/
@Schema(description = "验证码", example = "8888")
@Schema(description = "验证码", example = "888888")
@NotBlank(message = "验证码不能为空")
@Length(max = 4, message = "验证码非法")
@Length(max = 6, message = "验证码非法")
private String captcha;
/**