Authored by 姜枫

limit redirect to pc page

... ... @@ -14,8 +14,8 @@ module.exports = (req, res, next) => {
let limitAPI = helpers.urlFormat('/3party/check', {refer: refer});
let limitPage = helpers.urlFormat('/3party/check', {refer: req.protocol + '://' + req.get('host') + req.originalUrl});
limitAPI = limitAPI.replace('m.yohobuy.com', 'www.yohobuy.com');
limitPage = limitPage.replace('m.yohobuy.com', 'www.yohobuy.com')
limitAPI = limitAPI.replace('//m.yohobuy.com', 'http://www.yohobuy.com');
limitPage = limitPage.replace('//m.yohobuy.com', 'http://www.yohobuy.com');
if (_.indexOf(WHITE_LIST, req.path) >= 0) {
return next();
... ...