Commit 783c1d1b authored by zw's avatar zw

chat bug

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