wesmiler 2 달 전
부모
커밋
995cbd90a5
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      app/Services/Api/ArticleService.php

+ 6 - 0
app/Services/Api/ArticleService.php

@@ -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]);
+                }
+
             });
     }