feat:批量导入图文也增加自动标签
This commit is contained in:
parent
9aefcc8f76
commit
9a899613c3
@ -1450,6 +1450,15 @@ func ImportWorkBatch(ctx *gin.Context) {
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
// 处理内容中的标签:提取、验证并批量导入,以及自动生成标签
|
||||
processedContent, err := processContentAndAutoTags(ctx, temp.Content)
|
||||
if err != nil {
|
||||
temp.Remark = fmt.Sprintf("内容标签处理失败:%s", err.Error())
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
// 将处理后的内容更新到 temp.Content
|
||||
temp.Content = processedContent
|
||||
}
|
||||
}
|
||||
for i := 10; i <= 20; i++ {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user