...
|
...
|
@@ -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);
|
|
|
});
|
|
|
|
...
|
...
|
@@ -180,6 +180,21 @@ const couponExp = { |
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 清除登录状态
|
|
|
* @param req
|
|
|
* @param res
|
|
|
*/
|
|
|
clearYhLogin(req, res) {
|
|
|
req.session.yh_auth_uid = 0;
|
|
|
req.session.yh_auth_logged = false;
|
|
|
|
|
|
res.json({
|
|
|
code: 200,
|
|
|
message: '已清除有货授权登录状态'
|
|
|
});
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 助力好友
|
|
|
* @param req
|
|
|
* @param res
|
...
|
...
|
|