@@ -151,7 +151,7 @@ export const VideoGenFlow: TaskBiz = {
151
151
}
152
152
const videoServerInfo = await serverStore . serverInfo ( videoServer )
153
153
const res = await window . $mapi . server . callFunctionWithException ( videoServerInfo , 'videoGen' , {
154
- id : `VideoGen_ ${ bizId } ` ,
154
+ id : `VideoGenFlow_ ${ bizId } ` ,
155
155
videoFile : videoTemplate ?. video ,
156
156
soundFile : urlSound ,
157
157
param : record . param ,
@@ -186,14 +186,14 @@ export const VideoGenFlow: TaskBiz = {
186
186
if ( record . result . videoGenTaskId ) {
187
187
const serverInfo = await serverStore . serverInfo ( videoServer )
188
188
const res = await window . $mapi . server . callFunctionWithException ( serverInfo , 'query' , {
189
- id : `VideoGen_ ${ bizId } ` ,
189
+ id : `VideoGenFlow_ ${ bizId } ` ,
190
190
result : record . result ,
191
191
} , {
192
192
taskIdResultKey : 'videoGenTaskId'
193
193
} )
194
194
// console.log('VideoGenFlow.queryFunc.videoGen.res', res)
195
195
if ( res . code ) {
196
- throw res . msg || 'VideoGen query fail'
196
+ throw res . msg || 'VideoGenFlow video query fail'
197
197
}
198
198
// console.log('VideoGen.queryFunc.res', res)
199
199
switch ( res . data . type ) {
@@ -214,12 +214,15 @@ export const VideoGenFlow: TaskBiz = {
214
214
if ( record . result . soundTtsTaskId ) {
215
215
const serverInfo = await serverStore . serverInfo ( soundTtsServer )
216
216
const res = await window . $mapi . server . callFunctionWithException ( serverInfo , 'query' , {
217
- id : `VideoGen_ ${ bizId } ` ,
217
+ id : `VideoGenFlow_ ${ bizId } ` ,
218
218
result : record . result ,
219
219
} , {
220
220
taskIdResultKey : 'soundTtsTaskId'
221
221
} )
222
222
// console.log('VideoGenFlow.queryFunc.soundTts.res', res)
223
+ if ( res . code ) {
224
+ throw res . msg || 'VideoGenFlow soundTts query fail'
225
+ }
223
226
switch ( res . data . type ) {
224
227
case 'success' :
225
228
await TaskService . update ( bizId as any , {
@@ -237,12 +240,15 @@ export const VideoGenFlow: TaskBiz = {
237
240
} else if ( record . result . soundCloneTaskId ) {
238
241
const serverInfo = await serverStore . serverInfo ( soundCloneServer )
239
242
const res = await window . $mapi . server . callFunctionWithException ( serverInfo , 'query' , {
240
- id : `VideoGen_ ${ bizId } ` ,
243
+ id : `VideoGenFlow_ ${ bizId } ` ,
241
244
result : record . result ,
242
245
} , {
243
246
taskIdResultKey : 'soundCloneTaskId'
244
247
} )
245
248
// console.log('VideoGenFlow.queryFunc.soundClone.res', res)
249
+ if ( res . code ) {
250
+ throw res . msg || 'VideoGenFlow soundClone query fail'
251
+ }
246
252
switch ( res . data . type ) {
247
253
case 'success' :
248
254
await TaskService . update ( bizId as any , {
0 commit comments