...
|
...
|
@@ -163,7 +163,9 @@ exports.receiveCoupons = (req, res, next) => { |
|
|
openId: openId
|
|
|
}).then((result) => {
|
|
|
if (result.code === 200) {
|
|
|
result.data.goUrl = result.data.goUrl + '?sign=' + md5(result.data.couponAmount + secretKey);
|
|
|
result.data.goUrl = result.data.goUrl +
|
|
|
'?amount=' + result.data.couponAmount +
|
|
|
'&sign=' + md5(result.data.couponAmount + secretKey);
|
|
|
}
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
...
|
...
|
|