Authored by 姜枫

limit redirect to pc page

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