Commit df05afb2 authored by zhuwei's avatar zhuwei

判断是否纯房东

parent 33ae74ee
......@@ -82,7 +82,7 @@ class User extends Basic
"pageSize" => 15,
"status" => 0,
);*/
$field = "id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip";
$field = "id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand,vip,source";
$conditions = [];
......@@ -154,6 +154,15 @@ class User extends Basic
$clientService = new ClientService();
foreach ($userList as $k => $v) {
/*判断是否纯房东 0:否 1:是 start*/
$is_single_homeowner = 0;
if ($v['source'] == 41) {
//source 41纯房东
$is_single_homeowner = 1;
}
$userList[$k]['is_single_homeowner'] = $is_single_homeowner;
/*判断是否纯房东 end*/
$is_show = $clientService->dialTotal($v["user_id"]);
$userList[$k]['sign_call'] = $is_show ? 0 : 1;
......
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