wesmiler 2 ay önce
ebeveyn
işleme
995cbd90a5
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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]);
+                }
+
             });
     }