Authored by yyq

shop status

@@ -26,7 +26,7 @@ const shop = (shopId, req, res, next, brandInfo) => { @@ -26,7 +26,7 @@ const shop = (shopId, req, res, next, brandInfo) => {
26 let pjax = params._pjax; 26 let pjax = params._pjax;
27 27
28 // 获取不到店铺信息跳转至首页 28 // 获取不到店铺信息跳转至首页
29 - if (!shopInfo.data || _.isEmpty(shopInfo.data)) { 29 + if (!shopInfo || _.isEmpty(shopInfo)) {
30 return res.redirect(helpers.urlFormat('', null, '')); 30 return res.redirect(helpers.urlFormat('', null, ''));
31 } 31 }
32 32