Authored by 徐炜

微信分享不跳转到特殊页面

@@ -12,7 +12,7 @@ module.exports = () => { @@ -12,7 +12,7 @@ module.exports = () => {
12 let isWechat = /(MicroMessenger)/i.test(req.get('user-agent')); // eslint-disable-line 12 let isWechat = /(MicroMessenger)/i.test(req.get('user-agent')); // eslint-disable-line
13 13
14 14
15 - if (req.url === '/') { 15 + if (isMobile && req.url === '/') {
16 return res.redirect('//www.yohoshow.com/about/index/blkqr'); 16 return res.redirect('//www.yohoshow.com/about/index/blkqr');
17 } 17 }
18 18