Commit e34cce04 authored by hujun's avatar hujun

聊天注册

parent f19fe52b
......@@ -151,12 +151,19 @@ class ChatService
private function savePushIdV2($chat_user_id, $device_id, $push_id, $type)
{
//todo 根据设备来判断使用设备用户,
$where['ext_id'] = $chat_user_id;
$where['push_id'] = $push_id;
$where['device_id'] = $device_id;
$where['type'] = $type;
$info = $this->chatUserExtModel->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,a.is_forbidden', 100);
$info = $this->chatUserExtModel->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,a.is_forbidden', 100);
$result = false;
if (count($info) > 0) {
$where['device_id'] = $device_id;
$where['type'] = $type;
$where['ext_id'] = ['<>', $chat_user_id];
$info = $this->chatUserExtModel->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,a.is_forbidden', 100);
$current_user_id = 0;
foreach ($info as $k=>$v) {
if ($v['is_forbidden'] == 0) {
......
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