|
@@ -18,7 +18,7 @@ class findControl extends mobileHomeControl
|
|
|
*/
|
|
|
public function category_listOp()
|
|
|
{
|
|
|
- $category_list = Model()->table('category_item')->order('sort asc')->select();
|
|
|
+ $category_list = Model()->table('category_item')->where(array('enable'=>'1'))->order('sort asc')->select();
|
|
|
|
|
|
$result = array();
|
|
|
foreach ($category_list as $value) {
|
|
@@ -26,6 +26,7 @@ class findControl extends mobileHomeControl
|
|
|
$item['id'] = $value['id'];
|
|
|
$item['name'] = $value['name'];
|
|
|
$item['type'] = $value['category_type'];
|
|
|
+ $item['gc_id'] = $value['gc_id'];
|
|
|
|
|
|
array_push($result, $item);
|
|
|
}
|