Authored by 姜枫

Merge branch 'release/hbs' of http://git.yoho.cn/fe/yohobuy-node into release/hbs

@@ -34,7 +34,7 @@ module.exports = () => { @@ -34,7 +34,7 @@ module.exports = () => {
34 let domain = 'm.yohobuy.com'; 34 let domain = 'm.yohobuy.com';
35 let proReg = /^\/product\/pro/, 35 let proReg = /^\/product\/pro/,
36 guangReg = /^\/guang/, 36 guangReg = /^\/guang/,
37 - guangDetailReg = /.html$/, 37 + guangDetailReg = /\/guang\/info\/index/,
38 qsReg = /\?/; 38 qsReg = /\?/;
39 39
40 if (!req.xhr) { 40 if (!req.xhr) {
@@ -53,7 +53,7 @@ module.exports = () => { @@ -53,7 +53,7 @@ module.exports = () => {
53 data.mobileRefer = `//guang.${domain}`; 53 data.mobileRefer = `//guang.${domain}`;
54 54
55 if (guangDetailReg.test(url)) { 55 if (guangDetailReg.test(url)) {
56 - data.mobileRefer += url.replace(/\/guang\/detail\/([\d]+).html/, '/info/index?id=$1'); 56 + data.mobileRefer += url.replace(/\/guang\/info\/index/, '/info/index');
57 } else if (url === '/guang/Index/editor') { 57 } else if (url === '/guang/Index/editor') {
58 data.mobileRefer += `/author/index?id=${req.query.author_id}`; 58 data.mobileRefer += `/author/index?id=${req.query.author_id}`;
59 } 59 }
@@ -29,8 +29,6 @@ module.exports = () => { @@ -29,8 +29,6 @@ module.exports = () => {
29 req.url += '&' + RegExp.$3; 29 req.url += '&' + RegExp.$3;
30 } 30 }
31 req.query.id = RegExp.$1; 31 req.query.id = RegExp.$1;
32 -  
33 - console.log(req.url);  
34 } else if (!guangReg.test(req.path)) { 32 } else if (!guangReg.test(req.path)) {
35 req.url = '/guang' + req.url; 33 req.url = '/guang' + req.url;
36 } 34 }