未读消息检索bug修正

This commit is contained in:
hdm 2022-06-18 22:03:16 +08:00
parent 2f7751ea61
commit b9932b6f27

View File

@ -78,7 +78,7 @@ class Index extends BaseController
$map[] = ['title', 'like', '%' . $param['keywords'] . '%'];
}
if (!empty($param['read'])) {
if($param['read']==0){
if($param['read']==1){
$map[] = ['read_time', '=', 0];
}else{
$map[] = ['read_time', '>', 0];