Commit 788e3153 authored by zhuwei's avatar zhuwei

头像

parent 4d65874c
...@@ -258,8 +258,15 @@ class Broker extends Basic ...@@ -258,8 +258,15 @@ class Broker extends Basic
} }
if ($where) { if ($where) {
$field = 'id,name,phone'; $field = 'id,name,phone,img';
$data['data'] = $this->a_agents->getList($pageNo, $pageSize, 'id DESC', $field, '', $where); $data['data'] = $this->a_agents->getList($pageNo, $pageSize, 'id DESC', $field, '', $where);
if($data['data']){
foreach ($data['data'] as $k=>$v) {
if (isset($v['img'])) {
$data['data'][$k]['head_portrait'] = AGENTHEADERIMGURL . $v['img'];
}
}
}
} else { } else {
$data['msg'] = '没有经纪人信息'; $data['msg'] = '没有经纪人信息';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment