...
|
...
|
@@ -32,8 +32,9 @@ class IndexController extends HomeBaseController |
|
|
static $arr = [];
|
|
|
foreach ($data as $key => $value) {
|
|
|
if($value['parent_id'] == $pid){
|
|
|
$value['son'] = $this -> daohang($data,$value['id']);
|
|
|
$arr[] = $value;
|
|
|
$this -> daohang($data,$value['id']);
|
|
|
|
|
|
}
|
|
|
}
|
|
|
return $arr;
|
...
|
...
|
|