wesmiler 3 месяцев назад
Родитель
Сommit
6ac4248717
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/Services/Common/ArticleService.php

+ 2 - 0
app/Services/Common/ArticleService.php

@@ -67,6 +67,8 @@ class ArticleService extends BaseService
             ->where(function ($query) use ($type) {
                 if ($type>0) {
                     $query->where('a.type', $type);
+                }if ($type<0) {
+                    $query->whereIn('a.type', [1,2]);
                 } else {
                     $query->where('a.type','>=',3)->where('a.type','<',9);
                 }