This commit is contained in:
wucongxing8150 2024-08-22 10:51:35 +08:00
parent 6b666c3928
commit 2ea143f1fe

View File

@ -689,7 +689,7 @@ func (r *UserService) PutUser(userId int64, req requests.PutUser) (bool, error)
if req.Avatar != "" {
avatar := utils.RemoveOssDomain(req.Avatar)
if avatar != user.Avatar {
userData["avatar"] = req.Avatar
userData["avatar"] = avatar
}
} else {
if user.Avatar != "" {