...
|
...
|
@@ -98,7 +98,7 @@ const couponExp = { |
|
|
|
|
|
const coupons = req.session._EXP_COUPONS;
|
|
|
|
|
|
let promises = _.map(_.filter(coupons, cp => !cp.user_send), item => {
|
|
|
let promises = _.map(coupons, item => {
|
|
|
return req.ctx(expModel).getCoupon(uid, item.couponId);
|
|
|
});
|
|
|
|
...
|
...
|
@@ -161,7 +161,7 @@ const couponExp = { |
|
|
req.session.yh_auth_uid = uid;
|
|
|
req.session.yh_auth_logged = true;
|
|
|
|
|
|
let promises = _.map(_.filter(coupons, cp => !cp.user_send), item => {
|
|
|
let promises = _.map(coupons, item => {
|
|
|
return req.ctx(expModel).getCoupon(uid, item.couponId);
|
|
|
});
|
|
|
|
...
|
...
|
|