fix: 主播修改昵称审核 名字展示
This commit is contained in:
parent
f695b1132d
commit
baa10d86a2
|
@ -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{}
|
||||
|
|
Loading…
Reference in New Issue