...
|
...
|
@@ -373,7 +373,9 @@ class PortalPostModel extends Model |
|
|
*/
|
|
|
public function getArticleByKeyword($keyword){
|
|
|
$map['post_keywords']=['like',$keyword.'%'];
|
|
|
$map['delete_time']=0;
|
|
|
$map1['post_title']=['like',$keyword.'%'];
|
|
|
$map1['delete_time']=0;
|
|
|
$result=$this->field('id,post_title,post_content,more,published_time,create_time')
|
|
|
->where($map)
|
|
|
->whereOr($map1)
|
...
|
...
|
|