Commit 14250637 authored by clone's avatar clone

bug

parent 6cff2598
...@@ -322,7 +322,7 @@ class AppChat extends Basic ...@@ -322,7 +322,7 @@ class AppChat extends Basic
public function getChatRelation() public function getChatRelation()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"target" => "agent_5775" "target" => "agent_5775"
);*/ );*/
if (!isset($params['target'])) { if (!isset($params['target'])) {
......
...@@ -78,7 +78,7 @@ class ChatRelation extends Model ...@@ -78,7 +78,7 @@ class ChatRelation extends Model
$whereOr_["disable"] = 0; $whereOr_["disable"] = 0;
return $this->field($field) return $this->field($field)
->alias("a") ->alias("a")
->join("chat_user b","a.to_id !=$only_id and a.to_id=b.only_id or a.from_id=b.only_id","left") ->join("chat_user b","a.to_id != '".$only_id."' and a.to_id=b.only_id or a.from_id=b.only_id","left")
->join("a_agents c","b.type = 1 and b.id = c.id","left") ->join("a_agents c","b.type = 1 and b.id = c.id","left")
->join("u_users d","b.type =2 and b.id=d.id","left") ->join("u_users d","b.type =2 and b.id=d.id","left")
->where($where_) ->where($where_)
......
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