6964ed3d by yangjianbin

init

1 parent 9533ca50
...@@ -115,8 +115,19 @@ class Perm extends CI_Controller { ...@@ -115,8 +115,19 @@ class Perm extends CI_Controller {
115 $item6['name'] = $vvvvvv->name; 115 $item6['name'] = $vvvvvv->name;
116 $item6['pId'] = $vvvvv->id; 116 $item6['pId'] = $vvvvv->id;
117 $arr[] = $item6; 117 $arr[] = $item6;
118 if (!$vvvvvv->children || empty($vvvvvv->children)) {
119 continue;
120 }
121 foreach ($vvvvvv->children as $k7 => $v7) {
122 $item7 = array();
123 $item7['id'] = $v7->id;
124 $item7['name'] = $v7->name;
125 $item7['pId'] = $v7->id;
126 $arr[] = $item7;
118 } 127 }
119 } 128 }
129
130 }
120 } 131 }
121 } 132 }
122 } 133 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!