Merge pull request #17 from devsapp/fix#fc-419

fix: show resp code
This commit is contained in:
wss-git 2021-11-16 11:25:30 +08:00 committed by GitHub
commit 2c0a0b628d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -14,3 +14,4 @@ package-lock.json
README.md
./example
./.signore
./src

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');
}