...
|
...
|
@@ -73,6 +73,13 @@ const orderSub = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
orderModel.submit(req.user.uid, other).then(result => {
|
|
|
|
|
|
// 拼接地址
|
|
|
if (result.code === 200) {
|
|
|
result.data.payUrl = helper.urlFormat('/shopping/pay', {
|
|
|
orderCode: result.data.order_code
|
|
|
});
|
|
|
}
|
|
|
res.send(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|