Commit be081784 authored by hujun's avatar hujun

1

parent b3b16dcd
......@@ -210,18 +210,19 @@ class ChatService
$userExt = new ChatUserExt();
$where['only_id'] = $target;
$user_id = 0;
if ($is_user) {
$m_user = new ChatUser();
$user_where['only_id'] = $from;
$user_where['status'] = 1;
$user_arr = $m_user->getChatUserOne('user_id', $user_where);
$user_id = empty($user_arr['user_id']) ? 0:$user_arr['user_id'] ;
$where['type'] = 2;
} else {
$where['type'] = 1;
}
$m_user = new ChatUser();
$user_where['only_id'] = $from;
$user_where['status'] = 0;
$user_arr = $m_user->getChatUserOne('user_id', $user_where);
$user_id = empty($user_arr['user_id']) ? 0:$user_arr['user_id'] ;
$info = $userExt->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,b.user_id');
if (count($info) <= 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