Commit 5b2c5e95 authored by 肖爱江's avatar 肖爱江

11

parent 49f1a962
Pipeline #34789 passed with stage
in 13 seconds
......@@ -36,7 +36,10 @@ class StorageService extends Service {
contentType: 'json',
});
ctx.logger.info(`【Storage】write result`, JSON.stringify(result.data));
ctx.logger.info('【Storage】write result', JSON.stringify(result.data));
if (result.status !== 200 || +result.data.code !== 0) {
throw new Error('存储数据出错');
}
if (!(result.data.code !== '0' || 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