...
|
...
|
@@ -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)
|
...
|
...
|
|