Merge pull request '1' (#585) from feat-IRONFANS-139-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/585
This commit is contained in:
commit
963ae63c08
|
@ -552,6 +552,11 @@ func (s *CronService) VideoModerationBatch(ctx context.Context, param *xxl.RunRe
|
|||
} else {
|
||||
handleMsg.WriteString(fmt.Sprintf("batchId : %v, video moderation tasks of this batchId have finished, successNum: %v, failNum: %v", batchId, successNum, failNum))
|
||||
}
|
||||
// 同步视频审核结果
|
||||
err = DefaultService.SyncVideoModerationTaskResultByBatchId(&gin.Context{}, batchId)
|
||||
if err != nil {
|
||||
handleMsg.WriteString(fmt.Sprintf("ERROR : batchId : %v, video moderation tasks of this batchId have failed to syncronize, err :%v", batchId, err))
|
||||
}
|
||||
|
||||
logger.Info("Video moderation batch ends...")
|
||||
return handleMsg.String()
|
||||
|
@ -569,6 +574,11 @@ func (s *CronService) VideoModerationBatchHis(ctx context.Context, param *xxl.Ru
|
|||
} else {
|
||||
handleMsg.WriteString(fmt.Sprintf("batchId : %v, video moderation tasks of this batchId have finished, successNum: %v, failNum: %v", batchId, successNum, failNum))
|
||||
}
|
||||
// 同步视频审核结果
|
||||
err = DefaultService.SyncVideoModerationTaskResultByBatchId(&gin.Context{}, batchId)
|
||||
if err != nil {
|
||||
handleMsg.WriteString(fmt.Sprintf("ERROR : batchId : %v, video moderation tasks of this batchId have failed to syncronize, err :%v", batchId, err))
|
||||
}
|
||||
|
||||
logger.Info("Video moderation batch ends...")
|
||||
return handleMsg.String()
|
||||
|
|
|
@ -168,7 +168,7 @@ func handleVideoModerationResponse(resp *green20220302.VideoModerationResponse,
|
|||
}
|
||||
|
||||
if !isSuccess {
|
||||
rErr := handleVideoModerationResultResponseBody(&green20220302.VideoModerationResultResponseBody{
|
||||
_, _, rErr := handleVideoModerationResultResponseBody(&green20220302.VideoModerationResultResponseBody{
|
||||
Code: goproto.Int32(code),
|
||||
Message: goproto.String(msg),
|
||||
Data: &green20220302.VideoModerationResultResponseBodyData{
|
||||
|
|
Loading…
Reference in New Issue