Commit 1bdc63c5 authored by 何娜's avatar 何娜

不分渠道

parent 54036187
Pipeline #5831 passed with stage
in 2 seconds
......@@ -54,10 +54,8 @@ class TaskController extends Controller {
const {ctx, service} = this;
ctx.validate(this.createRule);
const {scriptId, orderId, userId} = ctx.request.body;
const channelType = await ctx.app.redis.get(scriptId);
ctx.app.redis.set(scriptId, channelType, "EX", 3600);
const taskId = await service.task.create({scriptId, channelType});
await service.order.update({orderId, cityId: scriptId, taskId, userId, text1: channelType});
const taskId = await service.task.create({scriptId});
await service.order.update({orderId, cityId: scriptId, taskId, userId});
await service.cache.set({
key: taskId,
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