Commit 08d8aa9c authored by clone's avatar clone

1

parent 1c6d856c
......@@ -570,17 +570,19 @@ class ChatService
$result[$key]["user_id"] = $item["user_id"];//关系id
//拆分查询
$info = $redis_service->agentCache($item["user_id"]);
if ($item["type"] == 1) { //经纪人
$result[$key]["agent_name"] = $info["name"];
$result[$key]["img"] = $info["img"];
$result[$key]["phone"] = $info["phone"];
$agent_info = $redis_service->agentCache($item["user_id"]);
$result[$key]["agent_name"] = $agent_info["name"];
$result[$key]["img"] = $agent_info["img"];
$result[$key]["phone"] = $agent_info["phone"];
} elseif ($item["type"] == 2) { //用户
$result[$key]["user_name"] = $info["user_name"];
$result[$key]["user_phone"] = $info["user_phone"];
$result[$key]["user_nick"] = $info["user_nick"];
$result[$key]["user_pic"] = $info["user_pic"];
$result[$key]["other_pic"] = $info["other_pic"];
$user_info = $redis_service->userCache($item["user_id"]);
$result[$key]["user_name"] = $user_info["user_name"];
$result[$key]["user_phone"] = $user_info["user_phone"];
$result[$key]["user_nick"] = $user_info["user_nick"];
$result[$key]["user_pic"] = $user_info["user_pic"];
$result[$key]["other_pic"] = $user_info["other_pic"];
}
//对方的only_id
if ($item["from_id"] == $target) {
......
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