Commit e1a47bfd62444559c3960348b36e91ce36f176f2
1 parent
f40deb5d
Exists in
master
and in
1 other branch
fix bug
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
routes/CMF/vizCard.js
@@ -23,7 +23,7 @@ router.get('/',async function(req, res, next) { | @@ -23,7 +23,7 @@ router.get('/',async function(req, res, next) { | ||
23 | <tem:username>axviz</tem:username> | 23 | <tem:username>axviz</tem:username> |
24 | <tem:password>1234</tem:password> | 24 | <tem:password>1234</tem:password> |
25 | <tem:systemName>30</tem:systemName> | 25 | <tem:systemName>30</tem:systemName> |
26 | - <tem:queryType>0</tem:queryType> | 26 | + <tem:queryType>1</tem:queryType> |
27 | <tem:cardId>${req.query.id}</tem:cardId> | 27 | <tem:cardId>${req.query.id}</tem:cardId> |
28 | </tem:SearchCustomer> | 28 | </tem:SearchCustomer> |
29 | </soap:Body> | 29 | </soap:Body> |
@@ -84,9 +84,7 @@ function asyncRequest (params = {}) { | @@ -84,9 +84,7 @@ function asyncRequest (params = {}) { | ||
84 | return new Promise((resolve, reject) => { | 84 | return new Promise((resolve, reject) => { |
85 | request(params, function (error, response, body) { | 85 | request(params, function (error, response, body) { |
86 | if (error) { | 86 | if (error) { |
87 | - | ||
88 | - | ||
89 | - (error); | 87 | + reject(error); |
90 | } else { | 88 | } else { |
91 | resolve({ | 89 | resolve({ |
92 | 'body' : body, | 90 | 'body' : body, |