Przeglądaj źródła

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/config-service into develop

xielin 5 lat temu
rodzic
commit
ddbaaccb19
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Repositories/StarNewsRepository.php

+ 1 - 1
app/Repositories/StarNewsRepository.php

@@ -24,7 +24,7 @@ class StarNewsRepository
                 ->where('id',$request['id'])->orderBy('id', 'desc')->first();
         }
         $this->starNews = $this->starNews
-            ->orderBy('id', 'desc')->get();
+            ->where('status',1)->orderBy('sort', 'asc')->get();
 
         return $this->starNews;
     }