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
0bf7a30b
Commit
0bf7a30b
authored
Jul 10, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
76557188
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Report.php
application/api_broker/controller/Report.php
+1
-0
ReportService.php
application/api_broker/service/ReportService.php
+2
-5
No files found.
application/api_broker/controller/Report.php
View file @
0bf7a30b
...
@@ -140,6 +140,7 @@ class Report extends Basic
...
@@ -140,6 +140,7 @@ class Report extends Basic
$check_type
=
1
;
$check_type
=
1
;
if
(
$agents_data
[
"level"
]
<
30
)
{
if
(
$agents_data
[
"level"
]
<
30
)
{
$check_type
=
$this
->
service_
->
getCheckType
(
$this
->
agentId
);
$check_type
=
$this
->
service_
->
getCheckType
(
$this
->
agentId
);
echo
$check_type
;
if
(
$check_type
==
0
)
{
if
(
$check_type
==
0
)
{
return
$this
->
response
(
101
,
"暂无权限"
);
return
$this
->
response
(
101
,
"暂无权限"
);
}
}
...
...
application/api_broker/service/ReportService.php
View file @
0bf7a30b
...
@@ -198,17 +198,14 @@ class ReportService
...
@@ -198,17 +198,14 @@ class ReportService
break
;
break
;
case
2
:
case
2
:
case
3
:
case
3
:
$agentArr
=
$vModel
->
getAgentsByAgentIdAndType
(
$params
[
"report_agent_id"
],
$check_type
);
$params
[
"agent_id_s"
]
=
$params
[
"report_agent_id"
];
$params
[
"agent_id_s"
]
=
array
(
"in"
,
$agentArr
);
$caseHouseId
=
$vModel
->
getCaseHouseIdByAgentIdV2
(
$params
[
"agent_id_s"
]);
$params
[
"report_agent_id"
]
=
$agentArr
;
$caseHouseId
=
$vModel
->
getPanpartyAndExclusiveHouseIdByAgentId
(
$params
[
"agent_id_s"
]);
$ids
=
""
;
$ids
=
""
;
if
(
count
(
$caseHouseId
)
>
0
)
{
if
(
count
(
$caseHouseId
)
>
0
)
{
foreach
(
$caseHouseId
as
$item
)
{
foreach
(
$caseHouseId
as
$item
)
{
$ids
.=
$item
[
"houses_id"
]
.
","
;
$ids
.=
$item
[
"houses_id"
]
.
","
;
}
}
}
}
$ids
=
rtrim
(
$ids
,
","
);
$ids
=
rtrim
(
$ids
,
","
);
$ids
=
$ids
?
$ids
:
0
;
$ids
=
$ids
?
$ids
:
0
;
$params
[
"house_ids"
]
=
$ids
;
$params
[
"house_ids"
]
=
$ids
;
...
...
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