fix: show resp code

This commit is contained in:
wss-git 2021-11-15 11:01:30 +08:00
parent 9c111e5b06
commit f8c5754072
1 changed files with 2 additions and 2 deletions

View File

@ -146,14 +146,14 @@ export default class RemoteInvoke {
if (resp?.err) {
this.showLog(resp.headers['x-fc-log-result']);
logger.log(`\nFC Invoke Result[code: ${resp.code}]:`, 'red');
logger.log(`\nFC Invoke Result[Code: ${resp.code}]:`, 'red');
console.log(resp.data);
console.log('\n');
} else {
if (resp) {
this.showLog(resp.headers['x-fc-log-result']);
logger.log('\nFC Invoke Result[code: ${resp.code}]:', 'green');
logger.log(`\nFC Invoke Result[Code: ${resp.code}]:`, 'green');
console.log(resp.data);
console.log('\n');
}