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
937fdcbf
authored
2018-04-01 23:36:56 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
8802a88a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
application/controllers/Perm.php
application/controllers/Perm.php
View file @
937fdcb
...
...
@@ -290,6 +290,7 @@ class Perm extends CI_Controller {
$r
[
'id'
]
=
$v
->
id
;
$r
[
'name'
]
=
$v
->
name
;
$r
[
'pId'
]
=
0
;
$r
[
'checked'
]
=
$v
->
checked
;
$arr2
[]
=
$r
;
if
(
!
$v
->
children
||
empty
(
$v
->
children
))
{
continue
;
...
...
@@ -299,11 +300,12 @@ class Perm extends CI_Controller {
$r2
[
'id'
]
=
$v2
->
id
;
$r2
[
'name'
]
=
$v2
->
name
;
$r2
[
'pId'
]
=
$v
->
id
;
$r2
[
'checked'
]
=
$v2
->
checked
;
$arr2
[]
=
$r2
;
}
}
var_dump
(
$arr2
);
exit
;
//
var_dump($arr2);exit;
foreach
(
$arr
as
$k
=>
$v
)
{
foreach
(
$arr2
as
$k2
=>
$v2
)
{
...
...
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