From ee332140343a5e13b9482961723252dc20239d14 Mon Sep 17 00:00:00 2001 From: wangxinyu Date: Tue, 17 Dec 2024 15:58:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=98=B5=E7=A7=B0=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=A4=B4=E5=83=8F=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E6=98=B5=E7=A7=B0=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/mix/service/apiservice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index b265c75f..2b781e48 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -369,11 +369,11 @@ func (s *Service) ApiUpdateAccount(ctx *gin.Context, req *accountproto.ApiUpdate } // 主播昵称需要先过审核 - if oldAccount.GetRole() == consts.Streamer && oldAccount.GetName() != req.Account.GetName() { + if oldAccount.GetRole() == consts.Streamer && (oldAccount.GetName() != req.Account.GetName() || oldAccount.GetNewName() != req.Account.GetNewName()) { opUpdateReq.NewName = goproto.String(req.Account.GetName()) auditStatus := s.SetAuditStatusBitMap(oldAccount.GetAuditStatus(), consts.StreamNikeAudit, consts.StreamerNikeNameAuditing) opUpdateReq.AuditStatus = goproto.Int64(auditStatus) - } else { + } else if oldAccount.GetName() != req.Account.GetName() && req.Account.GetNewName() != "" { opUpdateReq.Name = goproto.String(req.Account.GetName()) }