Authored by 毕凯

Merge remote-tracking branch 'origin/feature/miniPath' into release/6.4

@@ -24,6 +24,6 @@ router.post('/hf/v1', hotfix.v1); @@ -24,6 +24,6 @@ router.post('/hf/v1', hotfix.v1);
24 router.post('/rn/v1', rn.v1); 24 router.post('/rn/v1', rn.v1);
25 25
26 router.get('/.well-known/apple-app-site-association', apple.appSiteAssociation); 26 router.get('/.well-known/apple-app-site-association', apple.appSiteAssociation);
27 -router.get('/wechat/miniapp.jpg', forward.miniapp); 27 +router.get('/api/wechat/miniapp.jpg', forward.miniapp);
28 28
29 module.exports = router; 29 module.exports = router;
@@ -95,7 +95,7 @@ const newDetail = { @@ -95,7 +95,7 @@ const newDetail = {
95 mipDes: description, 95 mipDes: description,
96 mipUrl: `${req.protocol}://m.yohobuy.com/product/${result.productSkn}.html` 96 mipUrl: `${req.protocol}://m.yohobuy.com/product/${result.productSkn}.html`
97 }, 97 },
98 - miniPath: helpers.urlFormat('/wechat/miniapp.jpg', { 98 + miniPath: helpers.urlFormat('/api/wechat/miniapp.jpg', {
99 miniapp_type: 0, 99 miniapp_type: 0,
100 param: result.productSkn, 100 param: result.productSkn,
101 miniQrType: 1 101 miniQrType: 1
@@ -194,7 +194,7 @@ const shop = { @@ -194,7 +194,7 @@ const shop = {
194 } 194 }
195 195
196 // param:品牌ID, name:品牌名称, miniQrType 1:商品 2 品牌,miniapp_type 0:有货,1:新与力 196 // param:品牌ID, name:品牌名称, miniQrType 1:商品 2 品牌,miniapp_type 0:有货,1:新与力
197 - let miniPath = helpers.urlFormat('/wechat/miniapp.jpg', { 197 + let miniPath = helpers.urlFormat('/api/wechat/miniapp.jpg', {
198 miniapp_type: 0, 198 miniapp_type: 0,
199 param: _.get(brands, '[0].brand_id', 0), 199 param: _.get(brands, '[0].brand_id', 0),
200 name: encodeURIComponent(_.get(brands, '[0].brand_name', '')), 200 name: encodeURIComponent(_.get(brands, '[0].brand_name', '')),