...
|
...
|
@@ -2,11 +2,10 @@ |
|
|
|
|
|
const mRoot = '../models';
|
|
|
const recommendForYouModel = require(`${mRoot}/recommend-for-you`); // 领取优惠券 model
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
exports.userCenter = (req, res, next) => {
|
|
|
var udid = req.sessionID,
|
|
|
uid = _.isEmpty(req.user.uid) ? null : req.user.uid,
|
|
|
uid = req.user.uid || 0,
|
|
|
yhChannel = req.query.yh_channel || '1',
|
|
|
limit = 30;
|
|
|
|
...
|
...
|
@@ -32,7 +31,7 @@ exports.userCenter = (req, res, next) => { |
|
|
|
|
|
exports.cart = (req, res, next) => {
|
|
|
var udid = req.sessionID,
|
|
|
uid = _.isEmpty(req.user.uid) ? null : req.user.uid,
|
|
|
uid = req.user.uid || 0,
|
|
|
yhChannel = req.query.yh_channel || '1',
|
|
|
limit = 30;
|
|
|
|
...
|
...
|
|