Commit 42cc00c2 authored by clone's avatar clone

优化

parent 444a76c4
......@@ -181,7 +181,7 @@ class AppChat extends Basic
if ($result) {
return $this->response("200", "", [ "msg" => "消息发送成功" ]);
} else {
return $this->response("101", "", [ "msg" => "消息内容错误" ]);
return $this->response("101", "", [ "msg" => "消息发送失败" ]);
}
}
......
......@@ -227,14 +227,7 @@ class ChatService
$user_id = empty($user_arr['user_id']) ? 0 : $user_arr['user_id'];
} else {
$where['type'] = $item["type"];
}
if ($item['only_id'] == $target && $item['type'] == 1) {
$user_type = 1;
}
if ($item['only_id'] == $target && $item['type'] == 2) {
$user_type = 2;
$user_type = $item["type"];
}
}
$info = $userExt->getChatUserExtByUserId($where, 'a.id,a.ext_id,a.device_id,a.push_id,b.user_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