by Robin at 20240229; fix
This commit is contained in:
parent
4a45945c07
commit
42f56872b9
|
@ -40,7 +40,7 @@ func NewImageAuditTaskBatchControlBlock(tasks []*dbstruct.ImageAuditTask, batchI
|
||||||
taskCtrlBlock := NewImageAuditTaskControlBlock(task)
|
taskCtrlBlock := NewImageAuditTaskControlBlock(task)
|
||||||
ctrlBlock.TaskCtrlBlocks = append(ctrlBlock.TaskCtrlBlocks, taskCtrlBlock)
|
ctrlBlock.TaskCtrlBlocks = append(ctrlBlock.TaskCtrlBlocks, taskCtrlBlock)
|
||||||
ctrlBlock.RecordAction(taskCtrlBlock)
|
ctrlBlock.RecordAction(taskCtrlBlock)
|
||||||
ctrlBlock.RecordImage(taskCtrlBlock, &mediaFillables, imageIndex, taskIndex)
|
imageIndex, taskIndex = ctrlBlock.RecordImage(taskCtrlBlock, &mediaFillables, imageIndex, taskIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
mediafiller.FillList(&gin.Context{}, mediaFillables)
|
mediafiller.FillList(&gin.Context{}, mediaFillables)
|
||||||
|
@ -62,7 +62,7 @@ func (ctrlBlock *ImageAuditTaskBatchControlBlock) RecordAction(taskCtrlBlock *Im
|
||||||
ctrlBlock.ActionMap[taskCtrlBlock.ActionId].Record(taskCtrlBlock)
|
ctrlBlock.ActionMap[taskCtrlBlock.ActionId].Record(taskCtrlBlock)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ctrlBlock *ImageAuditTaskBatchControlBlock) RecordImage(taskCtrlBlock *ImageAuditTaskControlBlock, mediaFillables *[]mediafiller.MediaFillable, imageIndex int, taskIndex int) {
|
func (ctrlBlock *ImageAuditTaskBatchControlBlock) RecordImage(taskCtrlBlock *ImageAuditTaskControlBlock, mediaFillables *[]mediafiller.MediaFillable, imageIndex int, taskIndex int) (newImageIndex int, newTaskIndex int) {
|
||||||
|
|
||||||
// 未分片
|
// 未分片
|
||||||
if util.DerefInt64(taskCtrlBlock.ImageAuditTask.IsFragmented) == 0 {
|
if util.DerefInt64(taskCtrlBlock.ImageAuditTask.IsFragmented) == 0 {
|
||||||
|
@ -87,6 +87,7 @@ func (ctrlBlock *ImageAuditTaskBatchControlBlock) RecordImage(taskCtrlBlock *Ima
|
||||||
}
|
}
|
||||||
|
|
||||||
taskIndex++
|
taskIndex++
|
||||||
|
return imageIndex, taskIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
// 图像审核任务控制块
|
// 图像审核任务控制块
|
||||||
|
|
Loading…
Reference in New Issue