Authored by zhangxiaoru

version

@@ -5,7 +5,7 @@ const shareBuyModel = require('../models/share-buy'), @@ -5,7 +5,7 @@ const shareBuyModel = require('../models/share-buy'),
5 5
6 exports.index = (req, res, next) => { 6 exports.index = (req, res, next) => {
7 let activityId = req.query.activity_id || 2023, 7 let activityId = req.query.activity_id || 2023,
8 - isApp = req.query.app_version; 8 + isApp = req.yoho.isApp;
9 9
10 req.ctx(shareBuyModel).shareIndex(activityId, isApp).then(data => { 10 req.ctx(shareBuyModel).shareIndex(activityId, isApp).then(data => {
11 res.render('share-buy/share-buy', { 11 res.render('share-buy/share-buy', {
@@ -34,7 +34,7 @@ exports.detail = (req, res, next) => { @@ -34,7 +34,7 @@ exports.detail = (req, res, next) => {
34 detailDes: req.query.detailDes, 34 detailDes: req.query.detailDes,
35 couponId: req.query.couponId 35 couponId: req.query.couponId
36 }, 36 },
37 - isApp = req.query.app_version, 37 + isApp = req.yoho.isApp,
38 registerUrl; 38 registerUrl;
39 39
40 if (isApp) { 40 if (isApp) {
@@ -61,7 +61,7 @@ exports.detail = (req, res, next) => { @@ -61,7 +61,7 @@ exports.detail = (req, res, next) => {
61 }; 61 };
62 62
63 exports.myRebeat = (req, res, next) => { 63 exports.myRebeat = (req, res, next) => {
64 - let uid = req.user.uid, 64 + let uid = req.yoho.isApp,
65 isApp = req.yoho.isApp; 65 isApp = req.yoho.isApp;
66 66
67 req.ctx(shareBuyModel).myRebeat(uid, isApp).then(data => { 67 req.ctx(shareBuyModel).myRebeat(uid, isApp).then(data => {