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
a4c0de4b
authored
2018-03-25 23:00:46 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
1b542228
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
application/controllers/Perm.php
application/controllers/Perm.php
View file @
a4c0de4
...
...
@@ -74,10 +74,21 @@ class Perm extends CI_Controller {
$arr
[]
=
$item
;
foreach
(
$v
->
children
as
$kk
=>
$vv
)
{
$item2
=
array
();
$item2
[
'id'
]
=
$v
->
id
;
$item2
[
'name'
]
=
$v
->
name
;
$item2
[
'id'
]
=
$v
v
->
id
;
$item2
[
'name'
]
=
$v
v
->
name
;
$item2
[
'pId'
]
=
$v
->
id
;
$arr
[]
=
$item2
;
if
(
!
$vv
->
children
||
empty
(
$vv
->
children
))
{
continue
;
}
foreach
(
$v
->
children
as
$kkk
=>
$vvv
)
{
$item3
=
array
();
$item3
[
'id'
]
=
$vvv
->
id
;
$item3
[
'name'
]
=
$vvv
->
name
;
$item3
[
'pId'
]
=
$vv
->
id
;
$arr
[]
=
$item3
;
}
}
}
...
...
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