Authored by 周少峰

coupon status

... ... @@ -33,7 +33,7 @@ exports.index = (req, res, next) => {
exports.getCouponStatus = (req, res, next) => {
couponModel.getCouponStatus({
uid: req.user.uid,
contentCode: req.query.contentCode
contentCode: req.query.contentCode || contentCode
}).then(result => {
res.json(result);
}).catch(next);
... ...
... ... @@ -173,10 +173,6 @@ function getCouponStatus() {
data[hash[0]] = hash[1];
}
if (!data.contentCode) {
return;
}
$.ajax({
type: 'GET',
url: '/coupon/couponstatus',
... ...