a4c0de4b by yangjianbin

init

1 parent 1b542228
...@@ -74,10 +74,21 @@ class Perm extends CI_Controller { ...@@ -74,10 +74,21 @@ class Perm extends CI_Controller {
74 $arr[] = $item; 74 $arr[] = $item;
75 foreach ($v->children as $kk => $vv) { 75 foreach ($v->children as $kk => $vv) {
76 $item2 = array(); 76 $item2 = array();
77 $item2['id'] = $v->id; 77 $item2['id'] = $vv->id;
78 $item2['name'] = $v->name; 78 $item2['name'] = $vv->name;
79 $item2['pId'] = $v->id; 79 $item2['pId'] = $v->id;
80 $arr[] = $item2; 80 $arr[] = $item2;
81 if (!$vv->children || empty($vv->children)) {
82 continue;
83 }
84 foreach ($v->children as $kkk => $vvv) {
85 $item3 = array();
86 $item3['id'] = $vvv->id;
87 $item3['name'] = $vvv->name;
88 $item3['pId'] = $vv->id;
89 $arr[] = $item3;
90
91 }
81 } 92 }
82 93
83 } 94 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!