fix:昵称审核,修改头像覆盖昵称问题修复2

This commit is contained in:
wangxinyu 2024-12-17 16:17:37 +08:00
parent ee33214034
commit 016ed42dca
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ func (s *Service) ApiUpdateAccount(ctx *gin.Context, req *accountproto.ApiUpdate
auditStatus := s.SetAuditStatusBitMap(oldAccount.GetAuditStatus(), consts.StreamNikeAudit, consts.StreamerNikeNameAuditing)
opUpdateReq.AuditStatus = goproto.Int64(auditStatus)
} else if oldAccount.GetName() != req.Account.GetName() && req.Account.GetNewName() != "" {
opUpdateReq.Name = goproto.String(req.Account.GetName())
opUpdateReq.Name = req.Account.Name
}
// 用户只允许修改昵称和头像