Merge branch 'feature/openapp' into gray
Showing
2 changed files
with
3 additions
and
1 deletions
@@ -294,6 +294,8 @@ const index = (req, res, next) => { | @@ -294,6 +294,8 @@ const index = (req, res, next) => { | ||
294 | isWeibo = req.yoho.isWeibo, | 294 | isWeibo = req.yoho.isWeibo, |
295 | isShare; | 295 | isShare; |
296 | 296 | ||
297 | + res.locals.appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.h5","params":{"id":"${id}","share":"/guang/api/v1/share/guang?id=${id}","shareparam":{"id":"${id}"},"islogin":"N","type":1,"url":"http://guang.m.yohobuy.com/info/index","param":{"id":"${id}"}}}`; | ||
298 | + | ||
297 | // pagecache 前端做 | 299 | // pagecache 前端做 |
298 | // userAgent = req.get('User-Agent'), | 300 | // userAgent = req.get('User-Agent'), |
299 | // isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问 | 301 | // isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问 |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <meta name="apple-mobile-web-app-status-bar-style" content="black" /> | 10 | <meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
11 | <meta content="telephone=no" name="format-detection" /> | 11 | <meta content="telephone=no" name="format-detection" /> |
12 | <meta content="email=no" name="format-detection" /> | 12 | <meta content="email=no" name="format-detection" /> |
13 | - <meta name="referrer" content="origin-when-crossorigin"> | 13 | + <meta name="referrer" content="always"> |
14 | {{# cononical}} | 14 | {{# cononical}} |
15 | <link rel="cononical" href="{{currentHref}}"/> | 15 | <link rel="cononical" href="{{currentHref}}"/> |
16 | {{/ cononical}} | 16 | {{/ cononical}} |
-
Please register or login to post a comment