Commit f063d756 authored by 何娜's avatar 何娜

test

parent 1cde8560
Pipeline #21335 passed with stage
in 2 seconds
......@@ -23,6 +23,7 @@ class StorageService extends Service {
dataType: 'json',
...opts,
};
ctx.logger.info(`【StorageService】${url}`);
return ctx.curl(url, opts);
}
......@@ -35,7 +36,7 @@ class StorageService extends Service {
contentType: 'json',
});
ctx.logger.info(`【Storage】write url:${writeUrl} params`, { ...data, serviceType: writeType }, 'result:', result.data);
ctx.logger.info(`【Storage】write result:${JSON.stringify(result.data)}`);
if (!(result.data.code !== '0' || result.data.code !== 0)) {
throw new Error('存储数据出错');
}
......@@ -48,7 +49,7 @@ class StorageService extends Service {
method: 'get',
contentType: 'json',
});
ctx.logger.info(`【Storage】read url:${readUrl}${orderId}`);
ctx.logger.info(`【Storage】read url:${readUrl}${orderId}`, JSON.stringify(result.data));
if (result && result.data && result.data.code !== 0) {
ctx.logger.error(`storageAPI read ${readUrl}${orderId}`, JSON.stringify(result.data));
......
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