by Robin at 20240719
This commit is contained in:
parent
ea7d25b0a9
commit
8ac99776b2
|
@ -119,6 +119,7 @@ func (handler *VideoModerationTaskResultHandler) generateZoneMomentMediaComponen
|
|||
}
|
||||
}
|
||||
}
|
||||
task.BusinessOpinion = goproto.String(videoModerationOpinion.String())
|
||||
|
||||
err := _DefaultZoneMoment.OpUpdate(ctx, &zonemomentproto.OpUpdateReq{
|
||||
ZoneMoment: &dbstruct.ZoneMoment{
|
||||
|
@ -152,6 +153,7 @@ func tryToFinishVideoModerationTaskOfMoment(ctx *gin.Context, task *dbstruct.Vid
|
|||
}
|
||||
|
||||
// 机审完成,尝试触发moment_audit_task的人审
|
||||
task.BusinessOpinion = goproto.String(videoModerationOpinion.String())
|
||||
isFinished, err := _DefaultMomentAuditTask.TryToFinishVideoModerationTask(ctx, task, videoModerationOpinion.String())
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -194,7 +196,7 @@ func getVideoUpdateInfo(task *dbstruct.VideoModerationTask, option int) (auditco
|
|||
}
|
||||
auditcomp.AuditStatus = task.Status
|
||||
auditcomp.AuditOpinion = goproto.String(videoModerationOpinion.String())
|
||||
|
||||
task.BusinessOpinion = goproto.String(videoModerationOpinion.String())
|
||||
}
|
||||
|
||||
// 人审通过后切面,执行更新
|
||||
|
|
|
@ -21,6 +21,7 @@ type VideoModerationTask struct {
|
|||
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
|
||||
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
|
||||
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
|
||||
BusinessOpinion *string `json:"business_opinion" bson:"business_opinion"` // 业务意见
|
||||
|
||||
AuditedMediaResults []bool // 每个任务是否审核通过
|
||||
Description []string // 每个任务审核结果的描述
|
||||
|
|
|
@ -348,9 +348,10 @@ func executeRollBack(lastValidTask *dbstruct.VideoModerationTask) (err error) {
|
|||
logger.Error("Roll back taskId:%v fail:%v", lastValidTask.GetId(), err)
|
||||
if err = _DefaultVideoModerationTask.OpUpdate(ctx, &video_moderation_task_proto.OpUpdateReq{
|
||||
VideoModerationTask: &dbstruct.VideoModerationTask{
|
||||
Id: lastValidTask.Id,
|
||||
Status: goproto.Int64(consts.VideoModeration_Failed),
|
||||
Remarks: goproto.String("任务审核失败,回退失败,请联系管理员排查"),
|
||||
Id: lastValidTask.Id,
|
||||
Status: goproto.Int64(consts.VideoModeration_Failed),
|
||||
Remarks: goproto.String("任务审核失败,回退失败,请联系管理员排查"),
|
||||
BusinessOpinion: lastValidTask.BusinessOpinion,
|
||||
},
|
||||
}); err != nil {
|
||||
logger.Error("_DefaultVideoModeration OpUpdate fail: %v\n", err)
|
||||
|
|
Loading…
Reference in New Issue