正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -373,7 +373,9 @@ class PortalPostModel extends Model | @@ -373,7 +373,9 @@ class PortalPostModel extends Model | ||
373 | */ | 373 | */ |
374 | public function getArticleByKeyword($keyword){ | 374 | public function getArticleByKeyword($keyword){ |
375 | $map['post_keywords']=['like',$keyword.'%']; | 375 | $map['post_keywords']=['like',$keyword.'%']; |
376 | + $map['delete_time']=0; | ||
376 | $map1['post_title']=['like',$keyword.'%']; | 377 | $map1['post_title']=['like',$keyword.'%']; |
378 | + $map1['delete_time']=0; | ||
377 | $result=$this->field('id,post_title,post_content,more,published_time,create_time') | 379 | $result=$this->field('id,post_title,post_content,more,published_time,create_time') |
378 | ->where($map) | 380 | ->where($map) |
379 | ->whereOr($map1) | 381 | ->whereOr($map1) |
-
请 注册 或 登录 后发表评论