Authored by 郭成尧

verify-path

... ... @@ -40,5 +40,7 @@ router.get('/activity/manifest.json', pwa.manifest);
// 小程序使用的域名验证文件
router.get('/hfxRaNY27L.txt', miniapp.verify);
router.get('/activity/hfxRaNY27L.txt', miniapp.verify);
router.get('/shop/hfxRaNY27L.txt', miniapp.verify);
router.get('/product/hfxRaNY27L.txt', miniapp.verify);
module.exports = router;
... ...
... ... @@ -59,7 +59,7 @@ module.exports = () => {
req.url = `/product/search${req.path}`;
}
if (/^\/(list|shop)/.test(req.url)) {
if (/^\/(list|shop)/.test(req.url) && req.url.indexOf('hfxRaNY27L') < 0) {
// 商品列表页、全球购商品列表页、店铺首页路由
req.url = `/product${req.url}`;
}
... ...