Authored by 周少峰

搜索提示

@@ -397,7 +397,7 @@ class HelperSearch @@ -397,7 +397,7 @@ class HelperSearch
397 $brandParam = $brandIds; 397 $brandParam = $brandIds;
398 unset($brandParam[$key]); 398 unset($brandParam[$key]);
399 $params['brand'] = implode(',', $brandParam); 399 $params['brand'] = implode(',', $brandParam);
400 - self::$selected['brand'][] = array( 400 + self::$selected['brand'] = array(
401 'name' => $brandAll[$val], 401 'name' => $brandAll[$val],
402 'href' => self::buildUrl($params) 402 'href' => self::buildUrl($params)
403 ); 403 );
@@ -213,7 +213,8 @@ class SearchModel @@ -213,7 +213,8 @@ class SearchModel
213 */ 213 */
214 public static function getSuggest($query) 214 public static function getSuggest($query)
215 { 215 {
216 - $result = SearchData::getSuggest(); 216 + $param = array();
  217 + $result = SearchData::getSuggest($param);
217 return $result; 218 return $result;
218 } 219 }
219 } 220 }