Commit efea8cba authored by hujun's avatar hujun

array_push

parent 7fe197f3
...@@ -141,8 +141,8 @@ class Broker extends Basic ...@@ -141,8 +141,8 @@ class Broker extends Basic
if (!empty($reception_id['reception_id'])) { if (!empty($reception_id['reception_id'])) {
$march_agent = $agents->findByOne($fields_agent, [ 'id' => $reception_id['reception_id']]); $march_agent = $agents->findByOne($fields_agent, [ 'id' => $reception_id['reception_id']]);
if (!empty($march_agent)){ if (!empty($march_agent)){
$list[0] = $march_agent; $march_agent['show_content'] = '我对本铺非常了解,最近带看本铺多次';
$list[0]['show_content'] = '我对本铺非常了解,最近带看本铺多次'; array_push($list, $march_agent);
} }
} }
...@@ -155,8 +155,8 @@ class Broker extends Basic ...@@ -155,8 +155,8 @@ class Broker extends Basic
$client_where['a.id'] = $this->userId; $client_where['a.id'] = $this->userId;
$client = $agents->getAgentUser($fields, $client_where); //客方 $client = $agents->getAgentUser($fields, $client_where); //客方
if (!empty($client)){ if (!empty($client)){
$list[1] = $client; $client['show_content'] = '帮助客户找更多,善于了解客户需求';
$list[1]['show_content'] = '帮助客户找更多,善于了解客户需求'; array_push($list, $client);
} }
} }
...@@ -175,8 +175,8 @@ class Broker extends Basic ...@@ -175,8 +175,8 @@ class Broker extends Basic
$where['b.type'] = 3; $where['b.type'] = 3;
$house_agent = $agents->getAgentHouseType($fields, $where); $house_agent = $agents->getAgentHouseType($fields, $where);
if (!empty($house_agent)){ if (!empty($house_agent)){
$list[2] = $house_agent; $house_agent['show_content'] = '本铺由我登记,熟悉房源信息';
$list[2]['show_content'] = '本铺由我登记,熟悉房源信息'; array_push($list, $house_agent);
} }
foreach ($list as $k => $v) { foreach ($list as $k => $v) {
......
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