...
|
...
|
@@ -27,7 +27,7 @@ module.exports = () => { |
|
|
yoho.isApp = req.query.app_version || req.query.appVersion;
|
|
|
yoho.isWechat = /micromessenger/i.test(req.get('User-Agent') || '');
|
|
|
yoho.isWeibo = ua.match(/weibo/i) === 'weibo';
|
|
|
yoho.isqq = ua.indexOf('qq') != -1;
|
|
|
yoho.isqq = ua.indexOf('qq/') != -1;
|
|
|
|
|
|
Object.assign(res.locals, yoho);
|
|
|
Object.assign(req.yoho, yoho);
|
...
|
...
|
|