...
|
...
|
@@ -45,12 +45,15 @@ module.exports = () => { |
|
|
|
|
|
const channel = req.query.channel || req.cookies._Channel || 'boys';
|
|
|
|
|
|
// IP 地址
|
|
|
yoho.clientIp = _getClientIp(req);
|
|
|
// 当前频道设置
|
|
|
yoho.channel = channel;
|
|
|
|
|
|
// 用于头部颜色控制
|
|
|
yoho.pageChannel[channel] = true;
|
|
|
|
|
|
// IP 地址
|
|
|
yoho.clientIp = _getClientIp(req);
|
|
|
|
|
|
// 判断请求是否来自app
|
|
|
yoho.isMarsApp = /yohomars/i.test(req.get('User-Agent') || '');
|
|
|
yoho.isApp = yoho.isMarsApp ||
|
...
|
...
|
|