作者 sgj
1 个管道 的构建 通过 耗费 0 秒

注册取消平台设置

... ... @@ -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)
... ...