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
955bc2cd
Commit
955bc2cd
authored
Jun 01, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除菜单无效的数据
parent
0a072bdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
Auth.php
application/index/controller/Auth.php
+4
-8
No files found.
application/index/controller/Auth.php
View file @
955bc2cd
...
@@ -168,10 +168,9 @@ class Auth extends Basic
...
@@ -168,10 +168,9 @@ class Auth extends Basic
}
}
}
}
//权限表list
/**
/**
* 权限表list
*
* @param int $type
* @param int $type
* @return array|false|\PDOStatement|string|\think\Collection|\think\Response
* @return array|false|\PDOStatement|string|\think\Collection|\think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
...
@@ -179,12 +178,9 @@ class Auth extends Basic
...
@@ -179,12 +178,9 @@ class Auth extends Basic
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
classList
(
$type
=
1
){
public
function
classList
(
$type
=
1
){
$table
=
new
authRule
;
$table
=
new
authRule
;
$menus
=
db
(
'auth_rule'
)
->
select
();
$menus
=
db
(
'auth_rule'
)
->
where
(
'status'
,
0
)
->
select
();
// exit;
$menus
=
$table
->
toFormatTree
(
$menus
,
'title'
);
$menus
=
$table
->
toFormatTree
(
$menus
,
'title'
);
// prt($menus);
if
(
$type
==
1
)
{
if
(
$type
==
1
)
{
return
$this
->
response
(
200
,
'成功'
,
$menus
);
return
$this
->
response
(
200
,
'成功'
,
$menus
);
}
else
{
}
else
{
...
...
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