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
17ad3691
Commit
17ad3691
authored
Feb 01, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录合并
parent
f383d40f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
Agent.php
application/index/controller/Agent.php
+1
-1
Login.php
application/index/controller/Login.php
+2
-0
Basic.php
application/index/extend/Basic.php
+5
-0
route.php
application/route.php
+6
-6
No files found.
application/index/controller/Agent.php
View file @
17ad3691
...
...
@@ -160,7 +160,7 @@ class Agent extends Basic
}
$table
=
New
AAgents
;
if
(
$table
->
saveStatus
(
$data
[
'name'
],
$data
[
'k
'
],
$ids
)){
if
(
$table
->
saveStatus
(
'status'
,
$data
[
'status
'
],
$ids
)){
return
$this
->
response
(
200
,
'成功'
,
$data
);
}
else
{
return
$this
->
response
(
100
,
'失败'
,
$data
);
...
...
application/index/controller/Login.php
View file @
17ad3691
...
...
@@ -57,6 +57,7 @@ class Login extends Basic
Session
::
set
(
"userName"
,
$result
[
0
][
"name"
]);
Session
::
set
(
"userId"
,
$result
[
0
][
"id"
]);
Session
::
set
(
"usertable"
,
'admin'
);
Session
::
set
(
"lastLoginTime"
,
time
());
$this
->
operating_records
(
$result
[
0
][
"id"
],
1
,
'后台登陆'
);
//记录操作日志
$this
->
redirect
(
'/admin.php/index/banner'
);
...
...
@@ -115,6 +116,7 @@ class Login extends Basic
Session
::
set
(
"userName"
,
$list
[
"name"
]);
Session
::
set
(
"userId"
,
$list
[
"id"
]);
Session
::
set
(
"userinfo"
,
$list2
);
Session
::
set
(
"usertable"
,
'agent'
);
Session
::
set
(
"lastLoginTime"
,
time
());
$this
->
operating_records
(
$list
[
"id"
],
1
,
'后台登陆'
);
//记录操作日志
...
...
application/index/extend/Basic.php
View file @
17ad3691
...
...
@@ -61,7 +61,12 @@ class Basic extends Controller
$this
->
userVerify
();
}
$this
->
userAuth
(
$requestPath
);
$t
=
Session
::
get
(
"usertable"
);
if
(
trim
(
$t
)
==
'agent'
){
$this
->
userAuth
(
$requestPath
);
}
}
/**
...
...
application/route.php
View file @
17ad3691
...
...
@@ -97,12 +97,12 @@ Route::group('index', [
'authClass'
=>
[
'index/auth/authClass'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'navigation'
=>
[
'index/Basic/navigation'
,
[
'method'
=>
'get'
]],
//--规则分类列表
'agent'
=>
[
'index/agent/agent'
,
[
'method'
=>
'get'
]],
//
列表
'saveAgentIndex'
=>
[
'index/agent/saveAgentIndex'
,
[
'method'
=>
'get'
]],
//
列表
'AgentList'
=>
[
'index/agent/AgentList'
,
[
'method'
=>
'get'
]],
//
列表
'saveAgent'
=>
[
'index/agent/saveAgent'
,
[
'method'
=>
'get|post'
]],
//列表
'updateStatus'
=>
[
'index/agent/updateStatus'
,
[
'method'
=>
'
get'
]],
//列表
'updateRole'
=>
[
'index/agent/updateRole'
,
[
'method'
=>
'post'
]],
//经纪人角色修改
接口
'agent'
=>
[
'index/agent/agent'
,
[
'method'
=>
'get'
]],
//
首页列表界面
'saveAgentIndex'
=>
[
'index/agent/saveAgentIndex'
,
[
'method'
=>
'get'
]],
//
编辑列表列表界面
'AgentList'
=>
[
'index/agent/AgentList'
,
[
'method'
=>
'get'
]],
//
首页列表【接口】
'saveAgent'
=>
[
'index/agent/saveAgent'
,
[
'method'
=>
'get|post'
]],
//修改经纪人【接口】
'updateStatus'
=>
[
'index/agent/updateStatus'
,
[
'method'
=>
'
post'
]],
//状态修改【接口】
'updateRole'
=>
[
'index/agent/updateRole'
,
[
'method'
=>
'post'
]],
//经纪人角色修改
【接口】
//商圈
...
...
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