...
|
...
|
@@ -92,13 +92,13 @@ const _relatedInfo = (getOtherArticle, isApp) => { |
|
|
if (value.url.indexOf('guang.m.yohobuy.com') < 0) {
|
|
|
value.url = `${helpers.https(value.url)}?openby:yohobuy={"url":"${value.url}","islogin":"N"}}`;
|
|
|
} else {
|
|
|
value.url = `//m.yohobuy.com/guang/info/${value.id}.html?openby:yohobuy={"action":"go.h5","params":{"param":{"id":"${value.id}"},"shareparam":{"id":"${value.id}"},"share":"/guang/api/v1/share/guang","id":${value.id},"type":1,"url":"http://m.yohobuy.com/guang/info/${value.id}.html","islogin":"N"}}`;
|
|
|
value.url = `//m.yohobuy.com/guang/${value.id}.html?openby:yohobuy={"action":"go.h5","params":{"param":{"id":"${value.id}"},"shareparam":{"id":"${value.id}"},"share":"/guang/api/v1/share/guang","id":${value.id},"type":1,"url":"http://m.yohobuy.com/guang/${value.id}.html","islogin":"N"}}`;
|
|
|
}
|
|
|
} else {
|
|
|
if (value.url.indexOf('guang.m.yohobuy.com') < 0) {
|
|
|
value.url = value.url;
|
|
|
} else {
|
|
|
value.url = `//m.yohobuy.com/guang/info/${value.id}.html`;
|
|
|
value.url = `//m.yohobuy.com/guang/${value.id}.html`;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -312,7 +312,7 @@ const indexRedirect = (req, res, next) => { |
|
|
let id = req.query.id;
|
|
|
|
|
|
if (id) {
|
|
|
let redirectUrl = '/guang/info/';
|
|
|
let redirectUrl = '/guang/';
|
|
|
|
|
|
if (req.yoho.channel !== req.cookies._Channel) {
|
|
|
redirectUrl += `${req.yoho.channel}-`;
|
...
|
...
|
|