Showing
1 changed file
with
3 additions
and
2 deletions
@@ -119,7 +119,7 @@ exports.fetchOrders = (req, res) => { | @@ -119,7 +119,7 @@ exports.fetchOrders = (req, res) => { | ||
119 | .then(result => { | 119 | .then(result => { |
120 | imModel.handleOrderList(result.data); | 120 | imModel.handleOrderList(result.data); |
121 | res.json(result); | 121 | res.json(result); |
122 | - }, () =>{ | 122 | + }).catch(() =>{ |
123 | return res.json({ | 123 | return res.json({ |
124 | code: 500, | 124 | code: 500, |
125 | data: [] | 125 | data: [] |
@@ -138,7 +138,7 @@ exports.saveEvalute = (req, res) => { | @@ -138,7 +138,7 @@ exports.saveEvalute = (req, res) => { | ||
138 | imApi.saveEvalute(uid, conversationId, promoter, stars, reasonMsg) | 138 | imApi.saveEvalute(uid, conversationId, promoter, stars, reasonMsg) |
139 | .then(result => { | 139 | .then(result => { |
140 | return res.json(result); | 140 | return res.json(result); |
141 | - }, () => { | 141 | + }).catch(() => { |
142 | return res.json({ | 142 | return res.json({ |
143 | code: 500, | 143 | code: 500, |
144 | message: '评价失败' | 144 | message: '评价失败' |
@@ -158,6 +158,7 @@ exports.queryGlobalOrder = (req, res) => { | @@ -158,6 +158,7 @@ exports.queryGlobalOrder = (req, res) => { | ||
158 | 158 | ||
159 | imApi.queryGlobalOrder(uid) | 159 | imApi.queryGlobalOrder(uid) |
160 | .then(result=> { | 160 | .then(result=> { |
161 | + imModel.handleOrderList(result.data); | ||
161 | res.json(result); | 162 | res.json(result); |
162 | }, () => { | 163 | }, () => { |
163 | res.json(emptyOrder); | 164 | res.json(emptyOrder); |
-
Please register or login to post a comment