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
f9789f56
Commit
f9789f56
authored
Feb 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限
parent
edd3a129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
Report.php
application/api_broker/controller/Report.php
+1
-9
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/Report.php
View file @
f9789f56
...
@@ -157,19 +157,11 @@ class Report extends Basic
...
@@ -157,19 +157,11 @@ class Report extends Basic
*/
*/
public
function
getCheckType
()
public
function
getCheckType
()
{
{
$params
=
$this
->
params
;
// $params = array(
// "agent_id" => 5741,
// );
if
(
!
isset
(
$params
[
"agent_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$result
=
$this
->
service_
->
getCheckType
(
$this
->
agentId
);
$result
=
$this
->
service_
->
getCheckType
(
$this
->
agentId
);
if
(
$result
==
0
)
{
if
(
$result
==
0
)
{
return
$this
->
response
(
101
,
"暂无权限"
);
return
$this
->
response
(
101
,
"暂无权限"
);
}
else
{
}
else
{
return
$
result
;
return
$
this
->
response
(
"200"
,
"request success"
,
$result
)
;
}
}
}
}
...
...
application/route.php
View file @
f9789f56
...
@@ -644,7 +644,7 @@ Route::group('broker', [
...
@@ -644,7 +644,7 @@ Route::group('broker', [
'reportList'
=>
[
'api_broker/Report/reportList'
,
[
'method'
=>
'get'
]],
'reportList'
=>
[
'api_broker/Report/reportList'
,
[
'method'
=>
'get'
]],
'getCheckType'
=>
[
'api_broker/Report/getCheckType'
,
[
'method'
=>
'get'
]],
'getCheckType'
=>
[
'api_broker/Report/getCheckType'
,
[
'method'
=>
'get
|post
'
]],
'reportListForPc'
=>
[
'api_broker/Report/reportListForPc'
,
[
'method'
=>
'get'
]],
'reportListForPc'
=>
[
'api_broker/Report/reportListForPc'
,
[
'method'
=>
'get'
]],
'orderDetail'
=>
[
'api_broker/OrderLog/orderDetail'
,
[
'method'
=>
'get|post'
]],
'orderDetail'
=>
[
'api_broker/OrderLog/orderDetail'
,
[
'method'
=>
'get|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