fix: 用户手机邮箱备注允许置空
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
// 用户基本资料
|
||||
|
||||
Reference in New Issue
Block a user