Authored by 郝肖肖

搜索品牌,无店铺时判断变量是否存在

@@ -180,6 +180,7 @@ class HelperSearch @@ -180,6 +180,7 @@ class HelperSearch
180 if (isset($data['shopData']) && !empty($data['shopData'])) { 180 if (isset($data['shopData']) && !empty($data['shopData'])) {
181 $result['shopEntry'] = array(); 181 $result['shopEntry'] = array();
182 foreach ($data['shopData'] as $val) { 182 foreach ($data['shopData'] as $val) {
  183 + $val['shop']['shop_id'] = empty($val['shop']['shop_id']) ? '' : $val['shop']['shop_id'];
183 $shopSort = self::shop($val['shop'], $val['shopSort']); 184 $shopSort = self::shop($val['shop'], $val['shopSort']);
184 if (empty($shopSort)) { 185 if (empty($shopSort)) {
185 continue; 186 continue;