模板渲染逻辑调整
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user