Authored by 毕凯

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

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