07ecca20 by yangjianbin

init

1 parent f078816a
...@@ -88,6 +88,17 @@ class Perm extends CI_Controller { ...@@ -88,6 +88,17 @@ class Perm extends CI_Controller {
88 $item3['pId'] = $vv->id; 88 $item3['pId'] = $vv->id;
89 $arr[] = $item3; 89 $arr[] = $item3;
90 90
91 if (!$vvv->children || empty($vvv->children)) {
92 continue;
93 }
94 foreach ($vvv->children as $kkkk => $vvvv) {
95 $item4 = array();
96 $item4['id'] = $vvvv->id;
97 $item4['name'] = $vvvv->name;
98 $item4['pId'] = $vvv->id;
99 $arr[] = $item4;
100
101 }
91 } 102 }
92 } 103 }
93 104
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!