|
@@ -33,7 +33,7 @@ exports.index = (req, res, next) => { |
|
@@ -33,7 +33,7 @@ exports.index = (req, res, next) => { |
33
|
exports.getCouponStatus = (req, res, next) => {
|
33
|
exports.getCouponStatus = (req, res, next) => {
|
34
|
couponModel.getCouponStatus({
|
34
|
couponModel.getCouponStatus({
|
35
|
uid: req.user.uid,
|
35
|
uid: req.user.uid,
|
36
|
- contentCode: req.query.contentCode
|
36
|
+ contentCode: req.query.contentCode || contentCode
|
37
|
}).then(result => {
|
37
|
}).then(result => {
|
38
|
res.json(result);
|
38
|
res.json(result);
|
39
|
}).catch(next);
|
39
|
}).catch(next);
|