470898e8 by wang

init

1 parent b90d1b12
......@@ -76,10 +76,11 @@ class Perm extends CI_Controller {
$item['name'] = $v->name;
$item['pId'] = 0;
$item['open'] = true;
$arr[] = $item;
if (!$v->children || empty($v->children)) {
continue;
}
$arr[] = $item;
foreach ($v->children as $kk => $vv) {
$item2 = array();
$item2['id'] = $vv->id;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!