fix: 用户手机邮箱备注允许置空
This commit is contained in:
1 parent
08a74268ac
commit
fd60092f78
4 files changed
+7
-30
No files matched your search
@@ -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