Merge branch 'release/5.6' into release/security
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -321,11 +321,11 @@ const getShopList = params => { | @@ -321,11 +321,11 @@ const getShopList = params => { | ||
321 | } | 321 | } |
322 | 322 | ||
323 | // 店铺/品牌的小分类 | 323 | // 店铺/品牌的小分类 |
324 | - _.forEach(value.sort, sortInfo => { | 324 | + _.forEach(_.get(value, 'sortInfo.sort', []), sortInfo => { |
325 | _.forEach(_.get(sortInfo, 'sub', []), subSort => { | 325 | _.forEach(_.get(sortInfo, 'sub', []), subSort => { |
326 | let sortHref; | 326 | let sortHref; |
327 | 327 | ||
328 | - if (value.is_global === 'Y') { | 328 | + if (value.is_global !== 'Y') { |
329 | sortHref = helpers.urlFormat('', {misort: subSort.sort_id}, | 329 | sortHref = helpers.urlFormat('', {misort: subSort.sort_id}, |
330 | value.shop_domain || value.brand_domain); | 330 | value.shop_domain || value.brand_domain); |
331 | } else { | 331 | } else { |
-
Please register or login to post a comment