Commit e9416ff3 authored by 何娜's avatar 何娜

callback

parent 0c7a5ca6
Pipeline #5014 passed with stage
in 2 seconds
...@@ -150,10 +150,12 @@ class TaskController extends Controller { ...@@ -150,10 +150,12 @@ class TaskController extends Controller {
throw new Error('任务已经结束了'); throw new Error('任务已经结束了');
} }
const {orderId, appkey} = order; const {orderId, appkey} = order;
ctx.logger.info(result.cityId)
const script = await service.scripts.fetchOneScripts(result.cityId); const script = await service.scripts.fetchOneScripts(result.cityId);
ctx.logger.info('callback-script', JSON.stringify(script))
result.orderSn = orderId; result.orderSn = orderId;
result.orderId = orderId; result.orderId = orderId;
result.cityName = script.name || 'unknown'; // result.cityName = script.name || 'unknown';
result.taskId = taskId; result.taskId = taskId;
// result.appKey = appkey; // result.appKey = appkey;
delete result.code; delete result.code;
...@@ -180,7 +182,7 @@ class TaskController extends Controller { ...@@ -180,7 +182,7 @@ class TaskController extends Controller {
async cityConfigs() { async cityConfigs() {
const {ctx, service} = this; const {ctx, service} = this;
ctx.validate(this.cityConfigRule); ctx.validate(this.cityConfigRule);
await service.signature.signatureCheck(ctx.request.body); // await service.signature.signatureCheck(ctx.request.body);
const result = await service.task.getCityList(); const result = await service.task.getCityList();
ctx.success({ ctx.success({
code: 0, code: 0,
......
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