Authored by 郭成尧

shop-entry-add

@@ -67,7 +67,7 @@ const shop = { @@ -67,7 +67,7 @@ const shop = {
67 if (brandId === 0) { 67 if (brandId === 0) {
68 params.query = domain; 68 params.query = domain;
69 } 69 }
70 - if (brandShop.length > 0) { 70 + if (brandShop.length > 0 || brandLogo) {
71 params = _.assign({ 71 params = _.assign({
72 brandWay: _.isEmpty(brandShop) ? brandLogo : brandShop, 72 brandWay: _.isEmpty(brandShop) ? brandLogo : brandShop,
73 search: { 73 search: {
@@ -97,6 +97,7 @@ const shop = { @@ -97,6 +97,7 @@ const shop = {
97 }); 97 });
98 } 98 }
99 }).then((isBrand) => { 99 }).then((isBrand) => {
  100 + // console.log(params);
100 if (isBrand) { 101 if (isBrand) {
101 res.render('newshop/brand', { 102 res.render('newshop/brand', {
102 module: 'product', 103 module: 'product',