Commit 6ad874d9 authored by hujun's avatar hujun

区分客户与经纪人消息类型

parent 97043ac3
......@@ -209,6 +209,13 @@ class ChatService
$userExt = new ChatUserExt();
$where['only_id'] = $target;
if ($is_user) {
$where['type'] = 2;
} else {
$where['type'] = 1;
}
$info = $userExt->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id');
if (count($info) <= 0) {
......
......@@ -71,6 +71,10 @@ class ChatUserExt extends BaseModel
$where_['a.is_forbidden'] = 0;
}
if (isset($params['type'])) {
$where_['b.type'] = $params['type'];
}
$data = $this->db->field($field)
->alias("a")
->join("chat_user b", "a.ext_id = b.id", "right")
......
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