Commit ee00c36c authored by 何娜's avatar 何娜

调试提交任务接口

parent cdd8ad0b
Pipeline #27845 passed with stage
in 2 seconds
......@@ -93,7 +93,8 @@ class TaskController extends Controller {
// key: String(task_id) + data.data.orderId,
// value: { status: 'login', note: { message: 'login' } },
// });
ctx.success({ errcode: 0, taskId: task_id });
//ctx.success({ errcode: 0, taskId: task_id });
ctx.success({ errcode: 0, data: { task_id } });
}
async fetchCapture() {
......@@ -141,7 +142,7 @@ class TaskController extends Controller {
case -1:
service.order.update({
status: 'fail',
note: JSON.stringify(result),
note: result,
}, { orderId, taskId });
ctx.success({ errcode: 1, data: { state: -1, result: '服务器出错,请稍后重试' } });
// taskNote = {
......@@ -158,7 +159,7 @@ class TaskController extends Controller {
// }
service.order.update({
status: 'next',
note: JSON.stringify(result),
note: result,
}, { orderId, taskId });
ctx.success({ errcode: 0, data: { state: 1, html: service.index.getSMSHTML() } });
// taskNote = {
......@@ -169,7 +170,7 @@ class TaskController extends Controller {
case 110:
service.order.update({
status: 'query',
note: JSON.stringify(result),
note: result,
}, { orderId, taskId });
ctx.success({ errcode: 0, data: { state: 5, result: '更改为Query' } });
// taskNote = {
......@@ -185,7 +186,7 @@ class TaskController extends Controller {
try {
service.order.update({
status: 'wash',
note: JSON.stringify(result),
note: result,
}, { orderId, taskId });
await service.washData.wash(result, orderId);
await service.washData.newWash(result, orderId);
......
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