...
|
...
|
@@ -232,7 +232,7 @@ const brand = (req, res, next) => { |
|
|
}, params);
|
|
|
|
|
|
// 无店铺:0--->品牌页 无单品店有多品店:1--->搜索页 有单品店:2--->店铺页面
|
|
|
if (brandLogo.type === '2' && brandLogo.shopId) {
|
|
|
if (req.query.from !== 'search' && brandLogo.type === '2' && brandLogo.shopId) {
|
|
|
_shop(req, res, brandLogo.shopId);
|
|
|
} else { // 获取品牌店铺信息
|
|
|
listModel.getBrandShops(brandId).then(brandShop => {
|
...
|
...
|
@@ -362,12 +362,14 @@ const favoriteBrand = (req, res, next) => { |
|
|
}
|
|
|
});
|
|
|
|
|
|
refer = refererSplit[0] + '?' + shopId;
|
|
|
if (shopId) {
|
|
|
refer = refererSplit[0] + '?' + shopId;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
let url = helpers.urlFormat('/signin.html') + '?refer=' + refer;
|
|
|
|
|
|
if (appVersion) {
|
|
|
if (appVersion && appVersion !== 'false') {
|
|
|
uid = req.query.uid ? crypto.decrypt('', req.query.uid) : req.cookies.appUid;
|
|
|
|
|
|
if (!uid || uid === 'undefined') {
|
...
|
...
|
|