Merge branch 'feat-cjy-tag' into dev
This commit is contained in:
commit
549bdb0c66
@ -237,7 +237,6 @@ func SaveTagsToDatabase(ctx *gin.Context, tags []string, source uint32) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
fmt.Println("执行了吗?", tags)
|
||||
// 获取用户信息
|
||||
userInfo := login.GetUserInfoFromC(ctx)
|
||||
newCtx := NewCtxWithUserInfo(ctx)
|
||||
@ -265,7 +264,6 @@ func SaveTagsToDatabase(ctx *gin.Context, tags []string, source uint32) error {
|
||||
zap.L().Error("SaveTagsToDatabase UpdateCastTagBatch failed", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
fmt.Println("执行了吗?2", tags)
|
||||
zap.L().Info("SaveTagsToDatabase success", zap.Int("tagCount", len(tags)), zap.Strings("tags", tags), zap.Uint32("source", source))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -182,13 +182,9 @@ func UpdateWorkImage(ctx *gin.Context) {
|
||||
func processContentTags(ctx *gin.Context, content string) error {
|
||||
// 如果内容为空,直接返回
|
||||
if content == "" {
|
||||
fmt.Println("processContentTags: content为空,直接返回")
|
||||
return nil
|
||||
}
|
||||
|
||||
fmt.Println("processContentTags: 开始处理内容,content长度=", len(content))
|
||||
fmt.Println("processContentTags: content内容=", content)
|
||||
|
||||
// 提取标签
|
||||
tags := utils.ExtractTags(content)
|
||||
fmt.Println("processContentTags: 提取到的标签=", tags, "标签数量=", len(tags))
|
||||
@ -241,7 +237,6 @@ func processContentTags(ctx *gin.Context, content string) error {
|
||||
}
|
||||
|
||||
// processContentAndAutoTags 处理内容标签并自动生成标签
|
||||
// 该函数统一处理内容中的标签提取、验证和自动生成标签的逻辑
|
||||
func processContentAndAutoTags(ctx *gin.Context, content string) (string, error) {
|
||||
// 如果内容为空,直接返回
|
||||
if content == "" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user