...
|
...
|
@@ -15,6 +15,9 @@ module.exports = () => { |
|
|
switch (req.subdomains[0]) {
|
|
|
case 'www': // 主站
|
|
|
case 'new': // 原新版
|
|
|
case 'shop': // 商家入驻
|
|
|
case 'item':// 商品详情页
|
|
|
break;
|
|
|
case 'guang': // 逛
|
|
|
if (guangDetailReg.test(req.path)) {
|
|
|
req.url = '/guang/detail' + req.url;
|
...
|
...
|
@@ -22,9 +25,6 @@ module.exports = () => { |
|
|
req.url = '/guang' + req.url;
|
|
|
}
|
|
|
break;
|
|
|
case 'shop': // 商家入驻
|
|
|
case 'item':// 商品详情页
|
|
|
break;
|
|
|
case 'search': // 搜索
|
|
|
if (req.path === '/product/search/suggest') {
|
|
|
req.url = '/product/search/suggest';
|
...
|
...
|
|