Compare commits

..

No commits in common. "33efcffcaa0a163374e7f44fe965c062901b45bc" and "457e69f46bf43e03cf7f04a14e3c1e5951eb5c02" have entirely different histories.

1 changed files with 0 additions and 20 deletions

View File

@ -17,16 +17,6 @@ export abstract class N8nImageGenerateTemplate extends ImageGenerateTemplate {
"image_url": imageUrl
}
}
}).then(res => res.data).then(res => {
if (res.status) {
const data = res.data;
if (!data) throw new Error(`结果有误`)
if (Array.isArray(data) && data.length > 0) {
return data[0];
}
return data;
}
throw new Error(res.msg)
})
}
}
@ -58,16 +48,6 @@ export abstract class N8nVideoGenerateTemplate extends VideoGenerateTemplate {
"aspect_ratio": this.aspectRatio
}
}
}).then(res => res.data).then(res => {
if (res.status) {
const data = res.data;
if (!data) throw new Error(`结果有误`)
if (Array.isArray(data) && data.length > 0) {
return data[0];
}
return data;
}
throw new Error(res.msg)
})
}
}