Commit 9937b5e6 authored by 何娜's avatar 何娜

fix

parent fe247619
Pipeline #6043 passed with stage
in 2 seconds
......@@ -196,7 +196,7 @@ class TaskController extends Controller {
};
try {
result.cityId = Number(result.data.cityId);
result.cityName = await service.scripts.fetchScriptName(result.data.cityId);
result.cityName = await await service.scripts.fetchScriptName(result.cityId);
result.data = JSON.parse(result.data.data);
result.orderSn = orderId;
result.orderId = orderId;
......
......@@ -63,7 +63,7 @@ class ScriptsService extends Service {
if (result.data && (String(result.data.id) === scriptId)) {
await this.app.redis.set(redisScriptListKey + scriptId, JSON.stringify(result.data), 'EX', 60);
}
return result.data['hub_name'];
return result.data;
}
async fetchParams(refresh = false) {
......
......@@ -35,7 +35,7 @@ class StorageService extends Service {
contentType: 'json',
});
ctx.logger.info(`【Storage】write url:${writeUrl} params`, JSON.stringify({ ...data, serviceType: writeType }), 'result:', JSON.stringify(result.data));
// ctx.logger.info(`【Storage】write url:${writeUrl} params`, JSON.stringify({ ...data, serviceType: writeType }), 'result:', JSON.stringify(result.data));
if (result.data.code !== '0') {
throw new Error('存储数据出错');
}
......
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