...
|
...
|
@@ -5,7 +5,7 @@ const shareBuyModel = require('../models/share-buy'), |
|
|
|
|
|
exports.index = (req, res, next) => {
|
|
|
let activityId = req.query.activity_id || 2023,
|
|
|
isApp = req.query.app_version;
|
|
|
isApp = req.yoho.isApp;
|
|
|
|
|
|
req.ctx(shareBuyModel).shareIndex(activityId, isApp).then(data => {
|
|
|
res.render('share-buy/share-buy', {
|
...
|
...
|
@@ -34,7 +34,7 @@ exports.detail = (req, res, next) => { |
|
|
detailDes: req.query.detailDes,
|
|
|
couponId: req.query.couponId
|
|
|
},
|
|
|
isApp = req.query.app_version,
|
|
|
isApp = req.yoho.isApp,
|
|
|
registerUrl;
|
|
|
|
|
|
if (isApp) {
|
...
|
...
|
@@ -61,7 +61,7 @@ exports.detail = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
exports.myRebeat = (req, res, next) => {
|
|
|
let uid = req.user.uid,
|
|
|
let uid = req.yoho.isApp,
|
|
|
isApp = req.yoho.isApp;
|
|
|
|
|
|
req.ctx(shareBuyModel).myRebeat(uid, isApp).then(data => {
|
...
|
...
|
|