Authored by 陈峰

修复品牌主页数据验证bug

@@ -296,7 +296,7 @@ const brand = (req, res, next) => { @@ -296,7 +296,7 @@ const brand = (req, res, next) => {
296 }).then(brandHome => { 296 }).then(brandHome => {
297 params.brandHome = brandHome; 297 params.brandHome = brandHome;
298 298
299 - if (!brandHome.id) { 299 + if (!brandHome || !brandHome.id) {
300 res.set('Cache-Control', 'no-cache'); 300 res.set('Cache-Control', 'no-cache');
301 } 301 }
302 302