Commit e5c8df73 authored by clone's avatar clone

头像地址聊天关系

parent 9f3b2745
......@@ -443,11 +443,11 @@ class ChatService
//显示不是当前传入用户的用户信息 对方只能是一个人 如果不是用户则是经纪人
if (!empty($item["user_phone"])) {
$result[$key]["name"] = empty($item["user_nick"]) ? $item["user_name"] : $item["user_nick"];
$result[$key]["img"] = empty($item["user_pic"]) ? $item["other_pic"] : $item["user_pic"];
$result[$key]["img"] = !empty($user_info[0]["user_pic"]) ? HEADERIMGURL . $user_info[0]["user_pic"] : $user_info[0]["other_pic"];
$result[$key]["phone"] = $item["user_phone"];
} else {
$result[$key]["name"] = $item["agent_name"];
$result[$key]["img"] = $item["img"];
$result[$key]["img"] = AGENTHEADERIMGURL . $item["img"];
$result[$key]["phone"] = $item["phone"];
}
......
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