作者 lyh

gx

@@ -33,9 +33,11 @@ class NavController extends BaseController @@ -33,9 +33,11 @@ class NavController extends BaseController
33 $lists = $nav->list($this->map,$this->order = ['sort','id'],['*'],'asc'); 33 $lists = $nav->list($this->map,$this->order = ['sort','id'],['*'],'asc');
34 $data = array(); 34 $data = array();
35 if(!empty($lists)){ 35 if(!empty($lists)){
  36 + foreach ($lists as $k => $v){
  37 + $v = $this->handleReturnInfo((array)$v);
  38 + $lists[$k] = $v;
  39 + }
36 foreach ($lists as $v){ 40 foreach ($lists as $v){
37 - $v = (array)$v;  
38 - $v = $this->handleReturnInfo($v);  
39 if ($v['pid'] == 0) { 41 if ($v['pid'] == 0) {
40 $v['sub'] = _get_child($v['id'], $lists); 42 $v['sub'] = _get_child($v['id'], $lists);
41 $data[] = $v; 43 $data[] = $v;