Authored by htoooth

增加channel 的设置

@@ -13,7 +13,12 @@ module.exports = () => { @@ -13,7 +13,12 @@ module.exports = () => {
13 }; 13 };
14 const channel = req.query.channel || req.cookies._Channel || 'boys'; 14 const channel = req.query.channel || req.cookies._Channel || 'boys';
15 15
  16 + // 用于头部颜色控制
16 yoho.pageChannel[channel] = true; 17 yoho.pageChannel[channel] = true;
  18 +
  19 + // 当前频道设置
  20 + yoho.channel = channel;
  21 +
17 yoho.isApp = req.query.app_version || req.query.appVersion; 22 yoho.isApp = req.query.app_version || req.query.appVersion;
18 23
19 Object.assign(res.locals, yoho); 24 Object.assign(res.locals, yoho);