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