Authored by 陈峰

切换ip

... ... @@ -36,7 +36,7 @@ let domainApis = {
// 域名列表
const domains = {
erp: 'http://192.168.13.249',
erp: 'http://192.168.103.82:9098',
platform: 'http://192.168.102.210:8088/platform',
shop: 'http://192.168.102.211:30016'
};
... ...
... ... @@ -73,8 +73,12 @@ class Api extends Context {
logger.info(`api call ${response.statusCode} [${req.method}] ${req.uri.href} ${req.body || ''}`);
return jsonBody;
}).catch(err => {
logger.error(`api call ${err.statusCode} [${err.options.method}]
if (err.statusCode) {
logger.error(`api call ${err.statusCode} [${err.options.method}]
${err.options.url} ${err.response.body || ''}`);
} else {
logger.error(`api call ${err}`);
}
return Promise.reject(API_INTERNAL_ERROR);
});
}
... ...