Authored by ccbikai

修改频道 cookie作用域

... ... @@ -34,6 +34,10 @@ let _renderData = {
* @return {[type]}
*/
let _channelPage = (req, res, data) => {
res.cookie('_Channel', data.gender, {
maxAge: 2592000,
domain: 'yohobuy.com'
});
return channelModel.getChannelData({ // TODO 内部的Promise方法必须 return 出来
gender: data.gender,
uid: _.toString(req.user.uid)
... ...
... ... @@ -203,12 +203,4 @@ $('.home-header .iconfont').on('touchstart', function() {
// 底部留出tab 的高度
window.reMarginFooter('.footer-tab');
// set cookie
exports.set = function(c) {
window.setCookie('_Channel', c, {
expires: 365,
domain: '.yohobuy.com'
});
};
require('./maybe-like')();
... ...