Commit 8d5a79ce authored by 姜登's avatar 姜登

taskid

parent 51f32eb4
Pipeline #25982 passed with stage
in 17 seconds
...@@ -51,7 +51,7 @@ class TaskController extends Controller { ...@@ -51,7 +51,7 @@ class TaskController extends Controller {
ctx.validate(this.createRule); ctx.validate(this.createRule);
const { scriptId, orderId } = ctx.request.body; const { scriptId, orderId } = ctx.request.body;
const taskId = await service.task.create(scriptId); const taskId = await service.task.create(scriptId);
await service.order.update({ orderId, cityId: scriptId, String(taskId) }); await service.order.update({ orderId, cityId: scriptId, taskId: String(taskId) });
await service.cache.set({ await service.cache.set({
key: String(taskId), key: String(taskId),
value: { status: 'init', note: { message: 'init' } }, value: { status: 'init', note: { message: 'init' } },
......
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