Commit 42cc00c2 authored by clone's avatar clone

优化

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