...
|
...
|
@@ -97,9 +97,10 @@ const order = { |
|
|
}).catch(next);
|
|
|
},
|
|
|
confirmOrder: (req, res, next) => {
|
|
|
const uid = req.user.uid;
|
|
|
const orderode = req.body.orderCode;
|
|
|
|
|
|
orderModel.confirmOrder(orderode).then(result => {
|
|
|
orderModel.confirmOrder(uid, orderode).then(result => {
|
|
|
return res.json(result);
|
|
|
}).catch(next);
|
|
|
},
|
...
|
...
|
|