Commit 9b637771 authored by hujun's avatar hujun

[0]

parent d28f3a18
......@@ -1357,8 +1357,8 @@ class OfficeRoomService
$result['agent_end_time'] = $data['agent_end_time'];
$agent_data = $this->agent_room->getAgentsByRoomId('b.id,b.name,b.phone', ['a.house_id'=>$room_id, 'a.type'=>3]);
if ($agent_data) {
$result['name'] = empty($agents['name']) ? '' : $agents['name'] . '-' . $agents['phone'];
if ($agent_data[0]) {
$result['name'] = $agent_data[0]['name'] . '-' . $agent_data[0]['phone'];
} else {
$result['name'] = '';
}
......
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