模板渲染逻辑调整

This commit is contained in:
lmk
2026-08-28 13:38:40 +08:00
parent 486c4a2ff7
commit 68a5f45173
3 changed files with 5 additions and 5 deletions
-3
View File
@@ -29,9 +29,6 @@ func (c *template) CreateTemplate(ctx context.Context, req *dto.CreateTemplateTa
if len(req.VideoURLs) < 1 {
return nil, fmt.Errorf("至少需要1个视频")
}
if len(req.Templates) < 1 {
return nil, fmt.Errorf("至少需要1个HTML模板")
}
taskID, taskErr := service.Template.CreateAsyncTask(ctx, req.VideoURLs, req.AudioURL, req.Templates, req.Subtitles, req.SubtitleStyle, req.CallbackURL)
if taskErr != nil {