浏览代码

modify find.php

root 9 年之前
父节点
当前提交
cde09df03a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mobile/control/find.php

+ 2 - 1
mobile/control/find.php

@@ -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);
         }