fix:op主播昵称审核

This commit is contained in:
wangxinyu 2024-12-25 10:41:45 +08:00
parent 47fbda1240
commit c5a9102063
2 changed files with 12 additions and 7 deletions

View File

@ -3869,9 +3869,6 @@ func (m *Mongo) GetTextAuditTaskList(ctx *gin.Context, req *textaudittaskproto.O
if req.Status != nil {
query["status"] = util.DerefInt64(req.Status)
}
if req.Role != nil {
query["role"] = util.DerefInt64(req.Role)
}
if req.NotAlignedOpt != 0 {
query["is_aligned"] = qmgo.M{
"$ne": consts.TextAuditIsAligned_Yes,
@ -3905,10 +3902,6 @@ func (m *Mongo) GetTextAuditTaskListByCollectionInfos(ctx *gin.Context, database
"del_flag": 0,
}
if role != nil {
query["role"] = util.DerefInt64(role)
}
orClause := make([]qmgo.M, 0)
for i := range databases {
orClause = append(orClause, qmgo.M{

View File

@ -3337,6 +3337,18 @@ func (s *Service) OpGetTextAuditTaskVOList(ctx *gin.Context, req *textaudittaskp
return
}
// 主播昵称审核
if util.DerefInt64(req.Role) == consts.Streamer {
filterVoList := make([]*textaudittaskproto.TextAuditTaskVO, 0)
for _, vo := range volist {
account := acctMp[vo.GetMid()]
if account != nil && account.GetRole() == consts.Streamer {
filterVoList = append(filterVoList, vo)
}
}
volist = filterVoList
}
for _, vo := range volist {
vo.Account = &accountproto.OpListVO{}
vo.Account.CopyAccount(acctMp[vo.GetMid()])