作者 lyh

gx

@@ -32,14 +32,14 @@ class ProjectMenuController extends BaseController @@ -32,14 +32,14 @@ class ProjectMenuController extends BaseController
32 $menuModel = new ProjectMenuModel(); 32 $menuModel = new ProjectMenuModel();
33 $lists = $menuModel->lists($this->map,$this->page,$this->row,$this->order); 33 $lists = $menuModel->lists($this->map,$this->page,$this->row,$this->order);
34 $menu = array(); 34 $menu = array();
35 - foreach ($lists['list'] as $k => $v){  
36 - $v = (array)$v;  
37 - if ($v['pid'] == 0) {  
38 - $v['sub'] = _get_child($v['id'], $lists);  
39 - $menu[] = $v;  
40 - }  
41 - }  
42 - $this->response('success',Code::SUCCESS,$menu); 35 +// foreach ($lists['list'] as $k => $v){
  36 +// $v = (array)$v;
  37 +// if ($v['pid'] == 0) {
  38 +// $v['sub'] = _get_child($v['id'], $lists);
  39 +// $menu[] = $v;
  40 +// }
  41 +// }
  42 + $this->response('success',Code::SUCCESS,$lists);
43 } 43 }
44 44
45 /** 45 /**