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
4351c7f4
Commit
4351c7f4
authored
Jan 17, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证权限
parent
c37a7d66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
Broker.php
application/api_broker/controller/Broker.php
+24
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Broker.php
View file @
4351c7f4
...
...
@@ -994,4 +994,27 @@ class Broker extends Basic
return
$this
->
response
(
"200"
,
"成功"
,[
'data'
=>
$res
,
'total'
=>
$res_total
]);
}
/**
* 验证权限
*
* @return \think\Response
*/
public
function
checkAuth
()
{
$url
=
$this
->
params
[
'url'
];
if
(
empty
(
$url
))
{
return
$this
->
response
(
101
,
'条件为空'
);
}
$code
=
200
;
$msg
=
''
;
$vip_service
=
new
VipService
();
$is_
=
$vip_service
->
vip
(
$this
->
agentId
,
$url
);
if
(
$is_
)
{
$code
=
101
;
$msg
=
'没有权限'
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
\ No newline at end of file
application/route.php
View file @
4351c7f4
...
...
@@ -604,6 +604,7 @@ Route::group('broker', [
'vip'
=>
[
'api_broker/broker/vip'
,
[
'method'
=>
'get|post'
]],
'userStateSearch'
=>
[
'api_broker/broker/userStateSearch'
,
[
'method'
=>
'get|post'
]],
//新增-客户电话跟进
'user_search'
=>
[
'api_broker/broker/user_search'
,
[
'method'
=>
'get|post'
]],
//客户搜索
'checkAuth'
=>
[
'api_broker/broker/checkAuth'
,
[
'method'
=>
'get'
]],
//权限验证
'bindAXB'
=>
[
'api_broker/CellPhone/bindAXB'
,
[
'method'
=>
'post'
]],
//隐私号码
'agentsUnBind'
=>
[
'api_broker/CellPhone/agentsUnBind'
,
[
'method'
=>
'post'
]],
//解除绑定关系
'updateBindAXB'
=>
[
'api_broker/CellPhone/updateBindAXB'
,
[
'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