Commit 3134d0a8 authored by zhuwei's avatar zhuwei

客户头像bug

parent b8dec47f
...@@ -242,13 +242,14 @@ class UserLogService ...@@ -242,13 +242,14 @@ class UserLogService
{ {
//查询客户详情 //查询客户详情
$field = 'id as user_id,sex,user_pic,user_nick,user_name,user_phone,site_ids,agent_id,user_label,industry_type,price_demand,area_demand,vip,user_status'; $field = 'id as user_id,sex,user_pic,other_pic,user_nick,user_name,user_phone,site_ids,agent_id,user_label,industry_type,price_demand,area_demand,vip,user_status';
$result = $this->userModel->getUserDetailStreamline($user_id,$field); $result = $this->userModel->getUserDetailStreamline($user_id,$field);
if (count($result) <= 0) { if (count($result) <= 0) {
return ["code" => 101, "msg" => "没找到此条用户信息"]; return ["code" => 101, "msg" => "没找到此条用户信息"];
} }
$result['user_pic'] = HEADERIMGURL . $result['user_pic']; $result['user_pic'] = !empty($result["user_pic"]) ? HEADERIMGURL . $result["user_pic"] : $result["other_pic"];
#判断是否纯房东 0:否 1:是 #判断是否纯房东 0:否 1:是
$result['is_single_homeowner'] = $result['user_label'] == 2 ? 1 : 0 ; $result['is_single_homeowner'] = $result['user_label'] == 2 ? 1 : 0 ;
......
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