Authored by 沈志敏

修改路由

... ... @@ -227,7 +227,7 @@ router.get('/redbag/2017', redbag.index);
router.get('/individuation', individuation.productLst);
// 活动页模版
router.get('/feature/:code', feature.index);
router.get('/feature/:code.html', feature.index);
// 2016 年度账单
router.get('/annual-account', annualAccount.index);
... ...
... ... @@ -34,6 +34,9 @@ module.exports = () => {
if (req.hostname === 'activity.yoho.cn') {
// 活动模版的活动页
if (req.path === '/') {
return res.redirect('//m.yohobuy.com');
}
req.url = `/activity${req.url}`;
} else if (req.subdomains.length) {
switch (req.subdomains[0]) {
... ...