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
b673b49c
Commit
b673b49c
authored
Apr 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台访问判断
parent
b7cb8b06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Login.php
application/index/controller/Login.php
+2
-2
Member.php
application/index/controller/Member.php
+1
-1
No files found.
application/index/controller/Login.php
View file @
b673b49c
...
...
@@ -71,8 +71,8 @@ class Login extends Basic
return
$this
->
response
(
'102'
,
'用户所在角色组已冻结'
);
}
if
(
$list
[
'admin_off'
]
!=
'0'
||
empty
(
$list
[
'rules'
]))
{
return
$this
->
response
(
'103'
,
'
用户
无后台访问权限'
);
if
(
$list
[
'admin_off'
]
!=
'0'
||
empty
(
$list
[
'rules'
])
||
$list
[
'status'
]
!=
'0'
)
{
return
$this
->
response
(
'103'
,
'无后台访问权限'
);
}
else
{
//查询后台菜单
$nav
=
$this
->
authRule
->
getRule
(
$list
[
'rules'
]);
...
...
application/index/controller/Member.php
View file @
b673b49c
...
...
@@ -196,7 +196,7 @@ class Member extends Basic{
$params
[
'labels_id'
]
=
0
;
$params
[
'agent_id'
]
=
Session
::
get
(
"user_info.id"
);
$params
[
'type'
]
=
1
;
$params
[
'user_status'
]
=
$params
;
$params
[
'user_status'
]
=
$params
[
'user_status'
]
;
$table
->
allowField
(
true
)
->
save
(
$params
);
return
$this
->
response
(
$status
,
$msg
,
$params
);
}
...
...
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