Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
6abb6231
Commit
6abb6231
authored
Feb 01, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数组类型声明
parent
67f392bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
Login.php
application/index/controller/Login.php
+11
-9
No files found.
application/index/controller/Login.php
View file @
6abb6231
...
...
@@ -97,20 +97,22 @@ class Login extends Basic
$nav2
[
$v
->
id
]
=
$v
;
}
//搜索菜单功能
$where
=
"id in(
{
$rules
}
) and is_menu=0 and status=1 "
;
$r
=
$this
->
authrule
->
loginRule
(
$where
);
$r2
=
''
;
foreach
(
$r
as
$v
){
$r2
[
$v
->
pid
][]
=
$v
;
}
$where
=
"id in(
{
$rules
}
) and is_menu=0 and status=1 "
;
$r
=
$this
->
authrule
->
loginRule
(
$where
);
$r2
=
array
();
foreach
(
$r
as
$v
){
$r2
[
$v
->
pid
][]
=
$v
;
}
foreach
(
$nav2
as
$k
=>
$v
){
if
(
$r2
[
$k
]){
$nav2
[
$k
][
'cz'
]
=
$r2
[
$k
];
$nav2
[
$k
][
'cz'
]
=
$r2
[
$k
];
}
}
$list
[
'nav'
]
=
$nav2
;
$list2
=
$list
->
toArray
();
//转化arr
$list
[
'nav'
]
=
$nav2
;
$list2
=
$list
->
toArray
();
//转化arr
}
// Session::delete("userinfo");
Session
::
set
(
"userName"
,
$list
[
"name"
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment