Showing
1 changed file
with
7 additions
and
0 deletions
@@ -73,6 +73,13 @@ const orderSub = (req, res, next) => { | @@ -73,6 +73,13 @@ const orderSub = (req, res, next) => { | ||
73 | } | 73 | } |
74 | 74 | ||
75 | orderModel.submit(req.user.uid, other).then(result => { | 75 | orderModel.submit(req.user.uid, other).then(result => { |
76 | + | ||
77 | + // 拼接地址 | ||
78 | + if (result.code === 200) { | ||
79 | + result.data.payUrl = helper.urlFormat('/shopping/pay', { | ||
80 | + orderCode: result.data.order_code | ||
81 | + }); | ||
82 | + } | ||
76 | res.send(result); | 83 | res.send(result); |
77 | }).catch(next); | 84 | }).catch(next); |
78 | }; | 85 | }; |
-
Please register or login to post a comment