Showing
3 changed files
with
8 additions
and
5 deletions
@@ -270,11 +270,11 @@ class SearchData extends \LibModels\Wap\Product\SearchData | @@ -270,11 +270,11 @@ class SearchData extends \LibModels\Wap\Product\SearchData | ||
270 | } | 270 | } |
271 | 271 | ||
272 | /** | 272 | /** |
273 | - * 并行调接口url获取(产品分类) | ||
274 | - * @param | 273 | + * @param $condition |
274 | + * @return string | ||
275 | */ | 275 | */ |
276 | 276 | ||
277 | - public static function getClassesUrl($condition) | 277 | + public static function getClassesUrl($condition = array()) |
278 | { | 278 | { |
279 | $condition['sales'] = 'Y'; //在销售商品分类 | 279 | $condition['sales'] = 'Y'; //在销售商品分类 |
280 | $condition['status'] = 1; //上架商品分类 | 280 | $condition['status'] = 1; //上架商品分类 |
@@ -284,7 +284,8 @@ class SearchData extends \LibModels\Wap\Product\SearchData | @@ -284,7 +284,8 @@ class SearchData extends \LibModels\Wap\Product\SearchData | ||
284 | 284 | ||
285 | /** | 285 | /** |
286 | * 并行调接口url获取(获取折扣区间) | 286 | * 并行调接口url获取(获取折扣区间) |
287 | - * @param | 287 | + * @param array $param |
288 | + * @return string | ||
288 | */ | 289 | */ |
289 | 290 | ||
290 | public static function getDiscountUrl($param = array()) | 291 | public static function getDiscountUrl($param = array()) |
@@ -149,6 +149,7 @@ class HelperSearch | @@ -149,6 +149,7 @@ class HelperSearch | ||
149 | /** | 149 | /** |
150 | * TODO 组织商品列表信息 | 150 | * TODO 组织商品列表信息 |
151 | * @param $product 接口返回商品列表 | 151 | * @param $product 接口返回商品列表 |
152 | + * @param $options 条件 | ||
152 | * @author sefon 2015-12-21 17:24:04 | 153 | * @author sefon 2015-12-21 17:24:04 |
153 | * @return array | 154 | * @return array |
154 | */ | 155 | */ |
@@ -157,7 +157,8 @@ class SearchModel | @@ -157,7 +157,8 @@ class SearchModel | ||
157 | // 组合搜索商品url | 157 | // 组合搜索商品url |
158 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); | 158 | $urlList['product'] = SearchData::getProductUrl($searchCondition['condition']); |
159 | // 组合搜索分类url | 159 | // 组合搜索分类url |
160 | - $urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']); | 160 | + //$urlList['sort'] = SearchData::getClassesUrl($searchCondition['sortCondition']); |
161 | + $urlList['sort'] = SearchData::getClassesUrl(); | ||
161 | // 组合搜索折扣区间url | 162 | // 组合搜索折扣区间url |
162 | $urlList['discount'] = SearchData::getDiscountUrl($searchCondition['condition']); | 163 | $urlList['discount'] = SearchData::getDiscountUrl($searchCondition['condition']); |
163 | $result = Yohobuy::getMulti($urlList); | 164 | $result = Yohobuy::getMulti($urlList); |
-
Please register or login to post a comment