fix: 修复回调数据格式错误
This commit is contained in:
parent
db67fd718d
commit
fd7d619a51
|
|
@ -17,6 +17,7 @@ export class AppController {
|
|||
const task_id = body.task_id;
|
||||
if (!task_id) return ResponseUtil.error('缺少task_id', 400)
|
||||
const res = body.data;
|
||||
// {status: true, data: string[], task_id: string}
|
||||
let resultUrl = ``
|
||||
if (res.status) {
|
||||
const data = res.data;
|
||||
|
|
@ -44,9 +45,7 @@ export class AppController {
|
|||
: undefined,
|
||||
};
|
||||
|
||||
updateData.executionResult = body;
|
||||
|
||||
if (res.status) {
|
||||
if (body.status) {
|
||||
// 成功状态
|
||||
updateData.status = ExecutionStatus.COMPLETED;
|
||||
updateData.progress = 100;
|
||||
|
|
|
|||
Loading…
Reference in New Issue