Merge branch 'feat-cjy-tag' into dev
This commit is contained in:
commit
1922ab583e
@ -187,9 +187,7 @@ func processContentTags(ctx *gin.Context, content string) error {
|
|||||||
|
|
||||||
// 提取标签
|
// 提取标签
|
||||||
tags := utils.ExtractTags(content)
|
tags := utils.ExtractTags(content)
|
||||||
fmt.Println("processContentTags: 提取到的标签=", tags, "标签数量=", len(tags))
|
|
||||||
if len(tags) == 0 {
|
if len(tags) == 0 {
|
||||||
fmt.Println("processContentTags: 没有提取到标签,直接返回")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,7 +203,6 @@ func processContentTags(ctx *gin.Context, content string) error {
|
|||||||
|
|
||||||
// 如果没有有效标签,直接返回
|
// 如果没有有效标签,直接返回
|
||||||
if len(validTags) == 0 {
|
if len(validTags) == 0 {
|
||||||
fmt.Println("processContentTags: 有效标签为空,直接返回")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1539,7 +1536,7 @@ func ImportWorkBatch(ctx *gin.Context) {
|
|||||||
// 处理内容中的标签:提取、验证并批量导入,以及自动生成标签
|
// 处理内容中的标签:提取、验证并批量导入,以及自动生成标签
|
||||||
processedContent, err := processContentAndAutoTags(ctx, temp.Content)
|
processedContent, err := processContentAndAutoTags(ctx, temp.Content)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
temp.Remark = fmt.Sprintf("内容标签处理失败:%s", err.Error())
|
temp.Remark = fmt.Sprintf("%s", err.Error())
|
||||||
req.ImageWorks = append(req.ImageWorks, temp)
|
req.ImageWorks = append(req.ImageWorks, temp)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user