fix(feature): 限时抢券优惠券信息查询增加模板id
Showing
3 changed files
with
7 additions
and
5 deletions
@@ -288,7 +288,8 @@ exports.registerInviteNew = function(req, res) { | @@ -288,7 +288,8 @@ exports.registerInviteNew = function(req, res) { | ||
288 | 288 | ||
289 | exports.queryCouponSendInfo = function(req, res, next) { | 289 | exports.queryCouponSendInfo = function(req, res, next) { |
290 | let uid = req.user.uid, | 290 | let uid = req.user.uid, |
291 | - activityId = req.query.activityId; | 291 | + activityId = req.query.activityId, |
292 | + templateId = req.query.templateId; | ||
292 | 293 | ||
293 | if (!uid) { | 294 | if (!uid) { |
294 | return res.jsonp({ | 295 | return res.jsonp({ |
@@ -297,7 +298,7 @@ exports.queryCouponSendInfo = function(req, res, next) { | @@ -297,7 +298,7 @@ exports.queryCouponSendInfo = function(req, res, next) { | ||
297 | }); | 298 | }); |
298 | } | 299 | } |
299 | 300 | ||
300 | - req.ctx(model).queryCouponSendInfo(uid, activityId).then(result => { | 301 | + req.ctx(model).queryCouponSendInfo(uid, activityId, templateId).then(result => { |
301 | res.jsonp(result); | 302 | res.jsonp(result); |
302 | }).catch(next); | 303 | }).catch(next); |
303 | }; | 304 | }; |
@@ -654,12 +654,13 @@ class featureModel extends global.yoho.BaseModel { | @@ -654,12 +654,13 @@ class featureModel extends global.yoho.BaseModel { | ||
654 | }); | 654 | }); |
655 | } | 655 | } |
656 | 656 | ||
657 | - queryCouponSendInfo(uid, activityId) { | 657 | + queryCouponSendInfo(uid, activityId, templateId) { |
658 | return this.get({ | 658 | return this.get({ |
659 | data: { | 659 | data: { |
660 | method: 'app.coupons.querySendInfo', | 660 | method: 'app.coupons.querySendInfo', |
661 | uid, | 661 | uid, |
662 | - activityId | 662 | + activityId, |
663 | + templateId | ||
663 | } | 664 | } |
664 | }); | 665 | }); |
665 | } | 666 | } |
1 | { | 1 | { |
2 | "name": "yohobuywap-node", | 2 | "name": "yohobuywap-node", |
3 | - "version": "6.9.15-2", | 3 | + "version": "6.9.15-3", |
4 | "private": true, | 4 | "private": true, |
5 | "description": "A New Yohobuy Project With Express", | 5 | "description": "A New Yohobuy Project With Express", |
6 | "repository": { | 6 | "repository": { |
-
Please register or login to post a comment