wesmiler hace 3 meses
padre
commit
995cbd90a5
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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]);
+                }
+
             });
     }