Authored by 姜枫

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

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