搜索
This commit is contained in:
@@ -70,7 +70,10 @@ class PostService
|
||||
];
|
||||
}
|
||||
if (isset($p['keyword']) && $p['keyword']) {
|
||||
$config['where']['content'] = ['like', '%'.$p['keyword'].'%'];
|
||||
$k = '%' . $p['keyword'] . '%';
|
||||
foreach (['model','content'] as $col) {
|
||||
$config['orWhere'][] = [$col, 'like', $k];
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($p['status']) && $p['status']) {
|
||||
|
||||
Reference in New Issue
Block a user