fix: 用户手机邮箱备注允许置空

This commit is contained in:
TsMask
2023-10-30 18:18:05 +08:00
parent 08a74268ac
commit fd60092f78
4 changed files with 7 additions and 30 deletions

View File

@@ -120,8 +120,6 @@ func (s *SysProfileController) UpdateProfile(c *gin.Context) {
c.JSON(200, result.ErrMsg(msg))
return
}
} else {
body.PhoneNumber = "nil"
}
// 检查邮箱格式并判断是否唯一
@@ -138,8 +136,6 @@ func (s *SysProfileController) UpdateProfile(c *gin.Context) {
c.JSON(200, result.ErrMsg(msg))
return
}
} else {
body.Email = "nil"
}
// 用户基本资料