作者 sgj
1 个管道 的构建 通过 耗费 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)