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
5ef29d25
Commit
5ef29d25
authored
Apr 09, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
e03bfe12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
Report.php
application/api_broker/controller/Report.php
+6
-14
No files found.
application/api_broker/controller/Report.php
View file @
5ef29d25
...
...
@@ -127,28 +127,23 @@ class Report extends Basic
);*/
$auth_arr
=
[
'broker/report'
,
'broker/addFollowUp'
,
/*
'broker/report',
'broker/addFollowUp',
*/
'broker/marchIn'
,
'broker/collectingBill'
,
'broker/refund'
,
'broker/bargain'
,
'broker/statusBargain'
,
/* 'broker/statusBargain',*/
];
$param
[
"name"
]
=
array
(
"in"
,
$auth_arr
);
$agents
=
new
AAgents
();
$is_auth
=
$agents
->
agentsAuthIds
(
$params
[
"agent_id"
],
$param
);
$result
[
"report"
]
=
$result
[
"addFollowUp"
]
=
$result
[
"marchIn"
]
=
$result
[
"collectingBill"
]
=
$result
[
"refund"
]
=
$result
[
"bargain"
]
=
$result
[
"statusBargain"
]
=
false
;
/* $result["report"] = $result["addFollowUp"] = $result["statusBargain"] =*/
$result
[
"marchIn"
]
=
$result
[
"collectingBill"
]
=
$result
[
"refund"
]
=
$result
[
"bargain"
]
=
false
;
if
(
count
(
$is_auth
)
>
0
)
{
foreach
(
$is_auth
as
$item
)
{
if
(
$item
[
'name'
]
==
"broker/report"
)
{
$result
[
"report"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"broker/addFollowUp"
)
{
$result
[
"addFollowUp"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"broker/marchIn"
)
{
$result
[
"marchIn"
]
=
true
;
}
...
...
@@ -161,9 +156,6 @@ class Report extends Basic
if
(
$item
[
'name'
]
==
"broker/bargain"
)
{
$result
[
"bargain"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"broker/statusBargain"
)
{
$result
[
"statusBargain"
]
=
true
;
}
}
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
...
...
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