fix: 主播修改昵称审核 名字展示

This commit is contained in:
wangxinyu 2024-12-12 11:57:20 +08:00
parent f695b1132d
commit baa10d86a2
1 changed files with 3 additions and 2 deletions

View File

@ -417,9 +417,10 @@ func (s *Service) ApiGetAccountListByMid(ctx *gin.Context, req *accountproto.Api
return
}
// 主播查看的是更新之后的名字(审核失败后回退),其他用户看不到
nameFlag := s.GetAuditStatusBitMap(account.GetAuditStatus(), consts.StreamNikeAudit)
if account.GetRole() == consts.Streamer && nameFlag == consts.StreamerNikeNameAuditing {
account.Name = goproto.String(account.GetName())
if account.GetRole() == consts.Streamer && nameFlag == consts.StreamerNikeNameAuditing && req.GetBaseRequest().Mid == account.GetMid() {
account.Name = goproto.String(account.GetNewName())
}
vo = &accountproto.ApiListVO{}