e3b6e930 by yangjianbin

init

1 parent 2037a62d
...@@ -124,6 +124,16 @@ class Perm extends CI_Controller { ...@@ -124,6 +124,16 @@ class Perm extends CI_Controller {
124 $item7['name'] = $v7->name; 124 $item7['name'] = $v7->name;
125 $item7['pId'] = $vvvvvv->id; 125 $item7['pId'] = $vvvvvv->id;
126 $arr[] = $item7; 126 $arr[] = $item7;
127 if (!$v7->children || empty($v7->children)) {
128 continue;
129 }
130 foreach ($v7->children as $k8 => $v8) {
131 $item8 = array();
132 $item8['id'] = $v8->id;
133 $item8['name'] = $v8->name;
134 $item8['pId'] = $v7->id;
135 $arr[] = $item8;
136 }
127 } 137 }
128 } 138 }
129 139
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!