feat: enhance Ali video request handling and validation

This commit is contained in:
CaIon
2025-10-31 22:26:56 +08:00
parent ab30f584cc
commit a4cf9bb6fe
2 changed files with 46 additions and 8 deletions

View File

@@ -121,6 +121,7 @@ func ValidateMultipartDirect(c *gin.Context, info *RelayInfo) *dto.TaskError {
prompt = req.Prompt
model = req.Model
size = req.Size
seconds, _ = strconv.Atoi(req.Seconds)
if seconds == 0 {
seconds = req.Duration