Authored by hongweigao

修改

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