Showing
1 changed file
with
2 additions
and
2 deletions
@@ -5,7 +5,7 @@ const recommendForYouModel = require(`${mRoot}/recommend-for-you`); // 领取优 | @@ -5,7 +5,7 @@ const recommendForYouModel = require(`${mRoot}/recommend-for-you`); // 领取优 | ||
5 | const _ = require('lodash'); | 5 | const _ = require('lodash'); |
6 | 6 | ||
7 | exports.userCenter = (req, res, next) => { | 7 | exports.userCenter = (req, res, next) => { |
8 | - var udid = 'wap', | 8 | + var udid = req.sessionID, |
9 | uid = _.isEmpty(req.user.uid) ? null : req.user.uid, | 9 | uid = _.isEmpty(req.user.uid) ? null : req.user.uid, |
10 | yhChannel = req.query.yh_channel || '1', | 10 | yhChannel = req.query.yh_channel || '1', |
11 | limit = 30; | 11 | limit = 30; |
@@ -31,7 +31,7 @@ exports.userCenter = (req, res, next) => { | @@ -31,7 +31,7 @@ exports.userCenter = (req, res, next) => { | ||
31 | }; | 31 | }; |
32 | 32 | ||
33 | exports.cart = (req, res, next) => { | 33 | exports.cart = (req, res, next) => { |
34 | - var udid = 'wap', | 34 | + var udid = req.sessionID, |
35 | uid = _.isEmpty(req.user.uid) ? null : req.user.uid, | 35 | uid = _.isEmpty(req.user.uid) ? null : req.user.uid, |
36 | yhChannel = req.query.yh_channel || '1', | 36 | yhChannel = req.query.yh_channel || '1', |
37 | limit = 30; | 37 | limit = 30; |
-
Please register or login to post a comment