Explorar o código

article+status

rkljw hai 7 meses
pai
achega
1ec3c5a5fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/JsonRpc/NewsService.php

+ 1 - 1
app/JsonRpc/NewsService.php

@@ -159,7 +159,7 @@ class NewsService implements NewsServiceInterface
         }
         
         $rep = Article::where($where)
-            ->whereNotIn('status',[404])
+            ->whereNotIn('article.status',[404])
             ->leftJoin('category','article.catid','category.id')
             ->select("article.*","category.name as category_name")
             ->orderBy("article.id","desc")