Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6517be39
authored
2018-03-29 14:00:06 +0800
by
wang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
c9583235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
application/controllers/Perm.php
application/controllers/Perm.php
View file @
6517be3
...
...
@@ -173,34 +173,34 @@ class Perm extends CI_Controller {
continue
;
}
$arr
[]
=
$item
;
foreach
(
$v
->
children
as
$kk
=>
$vv
)
{
$item2
=
array
();
$item2
[
'id'
]
=
$vv
->
id
;
$item2
[
'name'
]
=
$vv
->
name
;
$item2
[
'pId'
]
=
$v
->
id
;
$item2
[
'open'
]
=
true
;
$arr
[]
=
$item2
;
if
(
!
$vv
->
children
||
empty
(
$vv
->
children
))
{
continue
;
}
foreach
(
$vv
->
children
as
$kkk
=>
$vvv
)
{
$item3
=
array
();
$item3
[
'id'
]
=
$vvv
->
id
;
$item3
[
'name'
]
=
$vvv
->
name
;
$item3
[
'pId'
]
=
$vv
->
id
;
$item3
[
'open'
]
=
true
;
$arr
[]
=
$item3
;
if
(
!
$vvv
->
children
||
empty
(
$vvv
->
children
))
{
continue
;
}
foreach
(
$vvv
->
children
as
$kkkk
=>
$vvvv
)
{
$item4
=
array
();
$item4
[
'id'
]
=
$vvvv
->
id
;
$item4
[
'name'
]
=
$vvvv
->
name
;
$item4
[
'pId'
]
=
$vvv
->
id
;
$item4
[
'open'
]
=
true
;
$arr
[]
=
$item4
;
//
foreach ($v->children as $kk => $vv) {
//
$item2 = array();
//
$item2['id'] = $vv->id;
//
$item2['name'] = $vv->name;
//
$item2['pId'] = $v->id;
//
$item2['open'] = true;
//
$arr[] = $item2;
//
if (!$vv->children || empty($vv->children)) {
//
continue;
//
}
//
foreach ($vv->children as $kkk => $vvv) {
//
$item3 = array();
//
$item3['id'] = $vvv->id;
//
$item3['name'] = $vvv->name;
//
$item3['pId'] = $vv->id;
//
$item3['open'] = true;
//
$arr[] = $item3;
//
//
if (!$vvv->children || empty($vvv->children)) {
//
continue;
//
}
//
foreach ($vvv->children as $kkkk => $vvvv) {
//
$item4 = array();
//
$item4['id'] = $vvvv->id;
//
$item4['name'] = $vvvv->name;
//
$item4['pId'] = $vvv->id;
//
$item4['open'] = true;
//
$arr[] = $item4;
// if (!$vvvv->children || empty($vvvv->children)) {
// continue;
// }
...
...
@@ -243,9 +243,9 @@ class Perm extends CI_Controller {
// }
//
// }
}
}
}
//
}
//
}
//
}
}
var_dump
(
$arr
);
exit
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment