Commit b0cbb428 authored by hujun's avatar hujun

1

parent 6d91d667
......@@ -193,13 +193,14 @@ class Broker extends Basic
/*处理多个手机登录聊天*/
$m_chat_ext = new ChatUserExt();
$bind_where['is_forbidden'] = 0;
$bind_where['user_id'] = ['<>', $agents_data['id']];
$bind_where['user_id'] = $agents_data['id'];
$bind_where['type'] = 1;
$bind_where['push_id'] = $params["push_id"];
$del_bind_id = $m_chat_ext->getChatUserExtByUserId($bind_where, 'a.id', 100);
$del_bind_id = $m_chat_ext->getChatUserExtByUserId($bind_where, 'a.id,a.push_id', 100);
if (count($del_bind_id) > 0) {
foreach ($del_bind_id as $v) {
$m_chat_ext->updateDate(['is_forbidden'=>1], ['id'=>$v['id']]);
if ($v['push_id'] != $params["push_id"]) {
$m_chat_ext->updateDate(['is_forbidden'=>1], ['id'=>$v['id']]);
}
}
}
/*处理多个手机登录聊天*/
......
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