mirror of
https://gitee.com/novel_dev_team/novel
synced 2026-07-20 17:52:45 +08:00
fix: 图片格式校验
This commit is contained in:
@@ -19,7 +19,7 @@ public class UserInfoUptReqDto {
|
|||||||
@Length(min = 2,max = 10)
|
@Length(min = 2,max = 10)
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
@Pattern(regexp="^/[^\s]{10,}\\.(png|jpg|jpeg|gif|bpm)$")
|
@Pattern(regexp="^/[^\s]{10,}\\.(png|PNG|jpg|JPG|jpeg|JPEG|gif|GIF|bpm|BPM)$")
|
||||||
private String userPhoto;
|
private String userPhoto;
|
||||||
|
|
||||||
@Min(value = 0)
|
@Min(value = 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user