Authored by biao

update set-yoho-date for adding channel

... ... @@ -13,11 +13,18 @@ module.exports = () => {
};
const channel = req.query.channel || req.cookies._Channel || 'boys';
// 用于头部颜色控制
yoho.pageChannel[channel] = true;
// 当前频道设置
yoho.channel = channel;
// 判断请求是否来自app
yoho.isApp = req.query.app_version || req.query.appVersion;
Object.assign(res.locals, yoho);
Object.assign(req.yoho, yoho);
next();
};
};
... ...