Showing
1 changed file
with
5 additions
and
2 deletions
@@ -45,12 +45,15 @@ module.exports = () => { | @@ -45,12 +45,15 @@ module.exports = () => { | ||
45 | 45 | ||
46 | const channel = req.query.channel || req.cookies._Channel || 'boys'; | 46 | const channel = req.query.channel || req.cookies._Channel || 'boys'; |
47 | 47 | ||
48 | - // IP 地址 | ||
49 | - yoho.clientIp = _getClientIp(req); | 48 | + // 当前频道设置 |
49 | + yoho.channel = channel; | ||
50 | 50 | ||
51 | // 用于头部颜色控制 | 51 | // 用于头部颜色控制 |
52 | yoho.pageChannel[channel] = true; | 52 | yoho.pageChannel[channel] = true; |
53 | 53 | ||
54 | + // IP 地址 | ||
55 | + yoho.clientIp = _getClientIp(req); | ||
56 | + | ||
54 | // 判断请求是否来自app | 57 | // 判断请求是否来自app |
55 | yoho.isMarsApp = /yohomars/i.test(req.get('User-Agent') || ''); | 58 | yoho.isMarsApp = /yohomars/i.test(req.get('User-Agent') || ''); |
56 | yoho.isApp = yoho.isMarsApp || | 59 | yoho.isApp = yoho.isMarsApp || |
-
Please register or login to post a comment