...
|
...
|
@@ -119,7 +119,7 @@ exports.fetchOrders = (req, res) => { |
|
|
.then(result => {
|
|
|
imModel.handleOrderList(result.data);
|
|
|
res.json(result);
|
|
|
}, () =>{
|
|
|
}).catch(() =>{
|
|
|
return res.json({
|
|
|
code: 500,
|
|
|
data: []
|
...
|
...
|
@@ -138,7 +138,7 @@ exports.saveEvalute = (req, res) => { |
|
|
imApi.saveEvalute(uid, conversationId, promoter, stars, reasonMsg)
|
|
|
.then(result => {
|
|
|
return res.json(result);
|
|
|
}, () => {
|
|
|
}).catch(() => {
|
|
|
return res.json({
|
|
|
code: 500,
|
|
|
message: '评价失败'
|
...
|
...
|
@@ -158,6 +158,7 @@ exports.queryGlobalOrder = (req, res) => { |
|
|
|
|
|
imApi.queryGlobalOrder(uid)
|
|
|
.then(result=> {
|
|
|
imModel.handleOrderList(result.data);
|
|
|
res.json(result);
|
|
|
}, () => {
|
|
|
res.json(emptyOrder);
|
...
|
...
|
|