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
a0bdef93
Commit
a0bdef93
authored
Feb 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url
parent
f36ee9e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Broker.php
application/api/controller/Broker.php
+5
-8
No files found.
application/api/controller/Broker.php
View file @
a0bdef93
...
...
@@ -126,10 +126,7 @@ class Broker extends Basic
$this
->
response
(
101
,
'参数错误'
);
}
$data
[
'status'
]
=
101
;
$data
[
'data'
]
=
$list
=
[];
$data
[
'msg'
]
=
''
;
$list
=
[];
$agents
=
new
AAgents
();
$m_march
=
new
OMarchInModel
();
$m_evaluate
=
new
Evaluate
();
...
...
@@ -171,7 +168,7 @@ class Broker extends Basic
}
foreach
(
$list
as
$k
=>
$v
)
{
$list
[
$k
][
'head_portrait'
]
=
AGENTHEADERIMGURL
.
$v
[
'img'
];
$list
[
$k
][
'head_portrait'
]
=
$v
[
'img'
];
$evaluate_data
=
$m_evaluate
->
getAgentEvaluateFraction
(
'count(id) as evaluate,sum(evaluate_grade) as evaluate_grade'
,
[
'agents_id'
=>
$v
[
'id'
]]);
if
(
$evaluate_data
[
0
][
'evaluate_grade'
])
{
$evaluate_grade
=
floor
((
$evaluate_data
[
0
][
'evaluate_grade'
]
/
2
)
/
$evaluate_data
[
0
][
'evaluate'
]);
...
...
@@ -184,9 +181,9 @@ class Broker extends Basic
unset
(
$list
[
$k
][
'img'
]);
}
$data
[
'
data'
][
'
list'
]
=
$list
;
$data
[
'
status'
]
=
200
;
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]
);
$data
[
'list'
]
=
$list
;
$data
[
'
url'
]
=
AGENTHEADERIMGURL
;
return
$this
->
response
(
200
,
''
,
$data
);
}
/**
...
...
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