Authored by 沈志敏

fix bug

... ... @@ -44,6 +44,14 @@ exports.status = (req, res, next) => {
} else {
uid = req.user.uid;
}
if (!uid) {
return res.json({
code: 400,
message: '抱歉,您暂未登录!'
});
}
model.status({
uid: uid,
contentCode: req.query.code
... ...
... ... @@ -31,7 +31,7 @@ router.get('/wechat/share', wechat.wechatShare);
router.get('/coupon/floor', couponFloor.index);
router.get('/coupon/status', auth, couponFloor.status);
router.get('/coupon/status', couponFloor.status);
router.get('/coupon/receiveCoupon', auth, couponFloor.receive);
... ...