Authored by 郭成尧

shops_id_to_shop

... ... @@ -357,8 +357,8 @@ class ListModel
array_push($result['class'], array('name' => $item['category_name']));
foreach ($item['sub'] as &$item2) {
$item2['url'] = Helpers::url('/product/index/index',array(
'shop_id' => '326'
)); // tar mark 还不知道链接是啥样的
'shop' => '326'
)); // tar mark 还有其他参数
}
array_push($result['category'], array('subcategory' => $item['sub']));
}
... ...
... ... @@ -28,7 +28,7 @@ class IndexController extends AbstractAction
{
// 过滤请求参数
$condition = filter_input_array(INPUT_GET, array(
'shop_id'=>FILTER_DEFAULT,
'shop'=>FILTER_DEFAULT,
'brand' => FILTER_DEFAULT,
'sort' => FILTER_DEFAULT,
'msort' => FILTER_DEFAULT,
... ... @@ -149,7 +149,7 @@ class IndexController extends AbstractAction
/* 过滤请求参数 */
$condition = filter_input_array(INPUT_GET, array(
'shop_id' => FILTER_DEFAULT,
'shop' => FILTER_DEFAULT,
'sort' => FILTER_DEFAULT,
'msort' => FILTER_DEFAULT,
'misort' => FILTER_DEFAULT,
... ...