fix: 移除没用的注释,修改报错提示
This commit is contained in:
parent
773799e6e0
commit
badb2eb240
@ -186,9 +186,7 @@ func processContentTags(ctx *gin.Context, content string) error {
|
||||
|
||||
// 提取标签
|
||||
tags := utils.ExtractTags(content)
|
||||
fmt.Println("processContentTags: 提取到的标签=", tags, "标签数量=", len(tags))
|
||||
if len(tags) == 0 {
|
||||
fmt.Println("processContentTags: 没有提取到标签,直接返回")
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -204,7 +202,6 @@ func processContentTags(ctx *gin.Context, content string) error {
|
||||
|
||||
// 如果没有有效标签,直接返回
|
||||
if len(validTags) == 0 {
|
||||
fmt.Println("processContentTags: 有效标签为空,直接返回")
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -1453,7 +1450,7 @@ func ImportWorkBatch(ctx *gin.Context) {
|
||||
// 处理内容中的标签:提取、验证并批量导入,以及自动生成标签
|
||||
processedContent, err := processContentAndAutoTags(ctx, temp.Content)
|
||||
if err != nil {
|
||||
temp.Remark = fmt.Sprintf("内容标签处理失败:%s", err.Error())
|
||||
temp.Remark = fmt.Sprintf("%s", err.Error())
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user