Commit 783c1d1b authored by zw's avatar zw

chat bug

parent 9f718958
...@@ -91,14 +91,12 @@ class ChatMsg extends Model ...@@ -91,14 +91,12 @@ class ChatMsg extends Model
$where_ = $where_or = []; $where_ = $where_or = [];
if (isset($where_arr["from"])) { if (isset($where_arr["from"])) {
$where_["from_id"] = $where_arr["from"]; $where_["from_id"] = $where_arr["from"];
//$where_or["to_id"] = $where_arr["from"];
} }
if (isset($where_arr["target"])) { if (isset($where_arr["target"])) {
$where_["to_id"] = $where_arr["target"]; $where_["to_id"] = $where_arr["target"];
// $where_or["from_id"] = $where_arr["target"];
} }
$where_["is_read"] = 0; $where_["is_read"] = 0;
if(empty($where_) || empty($where_or)){ if(empty($where_) ){
return false; return false;
} }
try { try {
......
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