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 | 23 | <tem:username>axviz</tem:username> |
| 24 | 24 | <tem:password>1234</tem:password> |
| 25 | 25 | <tem:systemName>30</tem:systemName> |
| 26 | - <tem:queryType>0</tem:queryType> | |
| 26 | + <tem:queryType>1</tem:queryType> | |
| 27 | 27 | <tem:cardId>${req.query.id}</tem:cardId> |
| 28 | 28 | </tem:SearchCustomer> |
| 29 | 29 | </soap:Body> |
| ... | ... | @@ -84,9 +84,7 @@ function asyncRequest (params = {}) { |
| 84 | 84 | return new Promise((resolve, reject) => { |
| 85 | 85 | request(params, function (error, response, body) { |
| 86 | 86 | if (error) { |
| 87 | - | |
| 88 | - | |
| 89 | - (error); | |
| 87 | + reject(error); | |
| 90 | 88 | } else { |
| 91 | 89 | resolve({ |
| 92 | 90 | 'body' : body, | ... | ... |