|
|
@@ -136,6 +136,12 @@ class ArticleService extends BaseService
|
|
|
$query->where('a.title','like',"%{$keyword}%");
|
|
|
}
|
|
|
|
|
|
+ // 协议
|
|
|
+ $showType = isset($params['show_type'])? $params['show_type'] : 0;
|
|
|
+ if($showType == 3){
|
|
|
+ $query->where('a.type','>=',3)->whereNotIn('a.type',[9]);
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|