Authored by 毕凯

奥莱页面唤起 APP

@@ -33,6 +33,9 @@ exports.index = (req, res, next) => { @@ -33,6 +33,9 @@ exports.index = (req, res, next) => {
33 let yhChannel = req.query.yh_channel || yhChannelEmpty; 33 let yhChannel = req.query.yh_channel || yhChannelEmpty;
34 let contentcode = req.query.content_code; 34 let contentcode = req.query.content_code;
35 35
  36 + // 唤起 APP 的路径
  37 + res.locals.appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.newoutlet","params":${JSON.stringify(req.query)}}`;
  38 +
36 outletModel.getContent(categoryId, yhChannel, contentcode).then(result => { 39 outletModel.getContent(categoryId, yhChannel, contentcode).then(result => {
37 res.render('outlet', Object.assign({ 40 res.render('outlet', Object.assign({
38 localCss: true, 41 localCss: true,