...
|
...
|
@@ -19,7 +19,7 @@ module.exports = () => { |
|
|
case 'item':// 商品详情页
|
|
|
break;
|
|
|
case 'guang': // 逛
|
|
|
case 'cdnsrcguang': //逛CDN回源解析
|
|
|
case 'cdnsrcguang': // 逛CDN回源解析
|
|
|
if (guangDetailReg.test(req.path)) {
|
|
|
req.url = '/guang/detail' + req.url;
|
|
|
} else if (!guangReg.test(req.path)) {
|
...
|
...
|
@@ -36,7 +36,7 @@ module.exports = () => { |
|
|
}
|
|
|
break;
|
|
|
case 'list': // 商品列表
|
|
|
case 'cdnsrclist': //商品列表CDN回源解析
|
|
|
case 'cdnsrclist': // 商品列表CDN回源解析
|
|
|
if (!req.path || req.path === '/') {
|
|
|
req.url = '/product/list/index';
|
|
|
} else if (req.path === '/new') {
|
...
|
...
|
@@ -44,7 +44,7 @@ module.exports = () => { |
|
|
}
|
|
|
break;
|
|
|
case 'sale': // 促销
|
|
|
case 'cdnsrcsale': //促销CDN回源解析
|
|
|
case 'cdnsrcsale': // 促销CDN回源解析
|
|
|
if (!req.path || req.path === '/') {
|
|
|
req.url = '/product/sale/special/detail';
|
|
|
}
|
...
|
...
|
|