Authored by hongweigao

修改

@@ -79,12 +79,8 @@ exports.getIndexGuide = (req, res, next) => { @@ -79,12 +79,8 @@ exports.getIndexGuide = (req, res, next) => {
79 }; 79 };
80 80
81 exports.hasNewUserFloor = (req, res, next) => { 81 exports.hasNewUserFloor = (req, res, next) => {
82 - let channelType = req.query.channel || req.cookies._Channel || 'boys';  
83 82
84 - // 将woman转换为girls,以便model层进行处理  
85 - channelType === 'woman' ? channelType = 'girls' : null;  
86 -  
87 - channelModel.hasNewUserFloor(channelType, req.user.uid).then(data => { 83 + channelModel.hasNewUserFloor(req.yoho.channel, req.user.uid).then(data => {
88 res.send(data); 84 res.send(data);
89 }).catch(next); 85 }).catch(next);
90 }; 86 };