Commit dce4f690 authored by clone's avatar clone

bug

parent 3d7e2824
...@@ -403,7 +403,7 @@ class ChatService ...@@ -403,7 +403,7 @@ class ChatService
$chatRelationModel = new ChatRelation(); $chatRelationModel = new ChatRelation();
$params["target"] = $target; $params["target"] = $target;
$params["from"] = $target; $params["from"] = $target;
$field = "a.id,a.to_id,a.from_id,a.create_time,b.type,b.id as user_or_agent_id,b.only_id, $field = "a.id,a.to_id,a.from_id,a.create_time,b.type,b.user_id,b.id as user_or_agent_id,b.only_id,
c.name as agent_name,c.img,c.phone,d.user_name,d.user_phone,d.user_nick,d.user_pic,d.other_pic"; c.name as agent_name,c.img,c.phone,d.user_name,d.user_phone,d.user_nick,d.user_pic,d.other_pic";
$relationList = $chatRelationModel->getChatRelationInfo($params, $field); $relationList = $chatRelationModel->getChatRelationInfo($params, $field);
...@@ -413,6 +413,7 @@ class ChatService ...@@ -413,6 +413,7 @@ class ChatService
$msgModel = new ChatMsg(); $msgModel = new ChatMsg();
foreach ($relationList as $key => $item) { foreach ($relationList as $key => $item) {
$result[$key]["id"] = $item["id"];//关系id $result[$key]["id"] = $item["id"];//关系id
$result[$key]["user_id"] = $item["user_id"];//关系id
//对方的only_id //对方的only_id
if ($item["from_id"] == $target) { 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