Authored by 郭成尧

del log

... ... @@ -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 => {
... ...
... ... @@ -46,12 +46,12 @@ const list = (req, res, next) => {
query = query.toLowerCase();
_.forEach(result[0], obj => {
if (query === obj.brandDomain && /^[a-z0-9]+$/i.test(obj.brandName)) { // 精确查品牌域名
if (query === obj.brandDomain) { // 精确查品牌域名
domain = query;
return false;
}
if (query === obj.brandName || query === obj.brandName || query === obj.brandName && /^[a-z0-9]+$/i.test(obj.brandName)) { // 精确查品牌名称
if (query === obj.brandName || query === obj.brandName || query === obj.brandName) { // 精确查品牌名称
domain = obj.brandDomain;
return false;
}
... ...
... ... @@ -670,7 +670,6 @@ const getBrandShops = (brandId) => {
code: 200,
cache: true
}).then(result => {
console.log(result);
if (_.isArray(result.data)) {
return _processBrandShops(result.data);
} else {
... ...