wesmiler hai 2 meses
pai
achega
a2cd050d55
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/Common/ArticleService.php

+ 1 - 1
app/Services/Common/ArticleService.php

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