Commit 20eee9fe authored by 姜登's avatar 姜登

gjj

parent 4085d98c
Pipeline #3984 passed with stage
in 5 seconds
......@@ -54,15 +54,15 @@ class TaskController extends Controller {
const { ctx, service, config } = this;
ctx.validate(this.submitRule);
const { taskId } = ctx.params;
await service.cache.set({
key: taskId,
value: { status: 'init', note: { message: 'init' } },
});
await service.task.submit({
taskId,
data: ctx.request.body,
callbackUrl: config.callbackUrl,
});
await service.cache.set({
key: taskId,
value: { status: 'init', note: { message: 'init' } },
});
ctx.success({ taskId });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment