正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -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; |
-
请 注册 或 登录 后发表评论