Skip to content

Commit de51b70

Browse files
committed
修复:一键合成异常显示优化
1 parent 8b3339c commit de51b70

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.11.0
2+
3+
- 修复:一键合成异常显示优化
4+
15
## v0.10.0 批量下载,表单记忆,自定义标题,问题修复
26

37
- 新增:内容生成批量下载功能

src/task/VideoGenFlow.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const VideoGenFlow: TaskBiz = {
151151
}
152152
const videoServerInfo = await serverStore.serverInfo(videoServer)
153153
const res = await window.$mapi.server.callFunctionWithException(videoServerInfo, 'videoGen', {
154-
id: `VideoGen_${bizId}`,
154+
id: `VideoGenFlow_${bizId}`,
155155
videoFile: videoTemplate?.video,
156156
soundFile: urlSound,
157157
param: record.param,
@@ -186,14 +186,14 @@ export const VideoGenFlow: TaskBiz = {
186186
if (record.result.videoGenTaskId) {
187187
const serverInfo = await serverStore.serverInfo(videoServer)
188188
const res = await window.$mapi.server.callFunctionWithException(serverInfo, 'query', {
189-
id: `VideoGen_${bizId}`,
189+
id: `VideoGenFlow_${bizId}`,
190190
result: record.result,
191191
}, {
192192
taskIdResultKey: 'videoGenTaskId'
193193
})
194194
// console.log('VideoGenFlow.queryFunc.videoGen.res', res)
195195
if (res.code) {
196-
throw res.msg || 'VideoGen query fail'
196+
throw res.msg || 'VideoGenFlow video query fail'
197197
}
198198
// console.log('VideoGen.queryFunc.res', res)
199199
switch (res.data.type) {
@@ -214,12 +214,15 @@ export const VideoGenFlow: TaskBiz = {
214214
if (record.result.soundTtsTaskId) {
215215
const serverInfo = await serverStore.serverInfo(soundTtsServer)
216216
const res = await window.$mapi.server.callFunctionWithException(serverInfo, 'query', {
217-
id: `VideoGen_${bizId}`,
217+
id: `VideoGenFlow_${bizId}`,
218218
result: record.result,
219219
}, {
220220
taskIdResultKey: 'soundTtsTaskId'
221221
})
222222
// console.log('VideoGenFlow.queryFunc.soundTts.res', res)
223+
if (res.code) {
224+
throw res.msg || 'VideoGenFlow soundTts query fail'
225+
}
223226
switch (res.data.type) {
224227
case 'success':
225228
await TaskService.update(bizId as any, {
@@ -237,12 +240,15 @@ export const VideoGenFlow: TaskBiz = {
237240
} else if (record.result.soundCloneTaskId) {
238241
const serverInfo = await serverStore.serverInfo(soundCloneServer)
239242
const res = await window.$mapi.server.callFunctionWithException(serverInfo, 'query', {
240-
id: `VideoGen_${bizId}`,
243+
id: `VideoGenFlow_${bizId}`,
241244
result: record.result,
242245
}, {
243246
taskIdResultKey: 'soundCloneTaskId'
244247
})
245248
// console.log('VideoGenFlow.queryFunc.soundClone.res', res)
249+
if (res.code) {
250+
throw res.msg || 'VideoGenFlow soundClone query fail'
251+
}
246252
switch (res.data.type) {
247253
case 'success':
248254
await TaskService.update(bizId as any, {

0 commit comments

Comments
 (0)